mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Added PubSubjs to the list
Quick and simple definition for PubSubjs
This commit is contained in:
1 parent
ea9dcdcf35
commit
105d758fec
1 file changed
+25
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
module PubSubJS {
|
||||
interface Base extends Publish, Subscribe, Unsubscribe {
|
||||
version: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Publish{
|
||||
publish(message: any, data: any): bool;
|
||||
|
||||
publish(message:any, data:any, sync:bool, immediateExceptions:Function): bool;
|
||||
|
||||
publishSync(message: any, data: any): bool;
|
||||
}
|
||||
|
||||
interface Subscribe{
|
||||
subscribe(message: any, func: Function): any;
|
||||
}
|
||||
|
||||
|
||||
interface Unsubscribe{
|
||||
unsubscribe(tokenOrFunction: any): any;
|
||||
}
|
||||
}
|
||||
|
||||
declare var PubSub: PubSubJS.Base;
|
||||
Reference in new issue
Block a user