-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
17 lines (15 loc) · 804 Bytes
/
index.d.ts
File metadata and controls
17 lines (15 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export as namespace jsminiPubsub;
export declare class PubSub {
subscribe(channel: string, callback: Function): object;
unsubscribe(channel: string, callback: Function): void;
publish(channel: string, ...args: Array<any>): void;
sub(channel: string, callback: Function): object;
unsub(channel: string, callback: Function): void;
pub(channel: string, ...args: Array<any>): void;
}
export function subscribe(channel: string, callback: Function): object;
export function unsubscribe(channel: string, callback: Function): void;
export function publish(channel: string, ...args: Array<any>): void;
export function sub(channel: string, callback: Function): object;
export function unsub(channel: string, callback: Function): void;
export function pub(channel: string, ...args: Array<any>): void;