Skip to content

Commit

Permalink
Merge pull request #425 from pusher/fix-ts-declarations
Browse files Browse the repository at this point in the history
Fix ts declarations
  • Loading branch information
James Lees authored Feb 12, 2020
2 parents ca65b2a + 4035ffb commit 210853d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/core/auth/auth_transports.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AbstractRuntime from 'runtimes/interface';
import AbstractRuntime from '../../runtimes/interface';

interface AuthTransport {
(context: AbstractRuntime, socketId: string, callback: Function): void;
Expand Down
2 changes: 1 addition & 1 deletion src/core/pusher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AbstractRuntime from 'runtimes/interface';
import AbstractRuntime from '../runtimes/interface';
import Runtime from 'runtime';
import Util from './util';
import * as Collections from './utils/collections';
Expand Down
2 changes: 1 addition & 1 deletion src/core/timeline/timeline_transport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TimelineSender from 'core/timeline/timeline_sender';
import TimelineSender from '../timeline/timeline_sender';

interface TimelineTransport {
name: string;
Expand Down
22 changes: 11 additions & 11 deletions src/runtimes/interface.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { AuthTransports } from 'core/auth/auth_transports';
import TimelineSender from 'core/timeline/timeline_sender';
import TimelineTransport from 'core/timeline/timeline_transport';
import Ajax from 'core/http/ajax';
import Reachability from 'core/reachability';
import TransportsTable from 'core/transports/transports_table';
import Socket from 'core/socket';
import HTTPFactory from 'core/http/http_factory';
import HTTPRequest from 'core/http/http_request';
import Pusher from 'core/pusher';
import { AuthTransports } from '../core/auth/auth_transports';
import TimelineSender from '../core/timeline/timeline_sender';
import TimelineTransport from '../core/timeline/timeline_transport';
import Ajax from '../core/http/ajax';
import Reachability from '../core/reachability';
import TransportsTable from '../core/transports/transports_table';
import Socket from '../core/socket';
import HTTPFactory from '../core/http/http_factory';
import HTTPRequest from '../core/http/http_request';
import Pusher from '../core/pusher';
import JSONPRequest from './web/dom/jsonp_request';
import Strategy from 'core/strategies/strategy';
import Strategy from '../core/strategies/strategy';

/*
This interface is implemented in web/runtime, node/runtime, react-native/runtime
Expand Down
2 changes: 1 addition & 1 deletion types/src/core/auth/auth_transports.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AbstractRuntime from 'runtimes/interface';
import AbstractRuntime from '../../runtimes/interface';
interface AuthTransport {
(context: AbstractRuntime, socketId: string, callback: Function): void;
}
Expand Down
2 changes: 1 addition & 1 deletion types/src/core/pusher.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AbstractRuntime from 'runtimes/interface';
import AbstractRuntime from '../runtimes/interface';
import Channels from './channels/channels';
import Channel from './channels/channel';
import { default as EventsDispatcher } from './events/dispatcher';
Expand Down
2 changes: 1 addition & 1 deletion types/src/core/timeline/timeline_transport.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TimelineSender from 'core/timeline/timeline_sender';
import TimelineSender from '../timeline/timeline_sender';
interface TimelineTransport {
name: string;
getAgent: (sender: TimelineSender, useTLS: boolean) => (data: any, callback: Function) => void;
Expand Down
20 changes: 10 additions & 10 deletions types/src/runtimes/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { AuthTransports } from 'core/auth/auth_transports';
import TimelineTransport from 'core/timeline/timeline_transport';
import Ajax from 'core/http/ajax';
import Reachability from 'core/reachability';
import TransportsTable from 'core/transports/transports_table';
import Socket from 'core/socket';
import HTTPFactory from 'core/http/http_factory';
import HTTPRequest from 'core/http/http_request';
import Pusher from 'core/pusher';
import { AuthTransports } from '../core/auth/auth_transports';
import TimelineTransport from '../core/timeline/timeline_transport';
import Ajax from '../core/http/ajax';
import Reachability from '../core/reachability';
import TransportsTable from '../core/transports/transports_table';
import Socket from '../core/socket';
import HTTPFactory from '../core/http/http_factory';
import HTTPRequest from '../core/http/http_request';
import Pusher from '../core/pusher';
import JSONPRequest from './web/dom/jsonp_request';
import Strategy from 'core/strategies/strategy';
import Strategy from '../core/strategies/strategy';
interface Runtime {
setup(PusherClass: {
new (key: string, options: any): Pusher;
Expand Down

0 comments on commit 210853d

Please sign in to comment.