From 105d758fec89c0df05047d1f8ed4ef84c0c69999 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Tue, 21 May 2013 10:16:18 +0100 Subject: [PATCH] Added PubSubjs to the list Quick and simple definition for PubSubjs --- PubSubjs/pubsub.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 PubSubjs/pubsub.d.ts diff --git a/PubSubjs/pubsub.d.ts b/PubSubjs/pubsub.d.ts new file mode 100644 index 000000000..3a9098144 --- /dev/null +++ b/PubSubjs/pubsub.d.ts @@ -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; \ No newline at end of file