##// END OF EJS Templates
created typings for basic part of dojo and dijit further work is required to...
created typings for basic part of dojo and dijit further work is required to complete typings and separate them from this project dojo-typings replaced with @type/dojo, @type/dijit.

File last commit:

r2:8ec37bf1b4d1 default
r2:8ec37bf1b4d1 default
Show More
topic.d.ts
14 lines | 528 B | video/mp2t | TypeScriptLexer
cin
created typings for basic part of dojo and dijit further work is required to...
r2 import { ExtensionEvent } from "./on";
import { Handle } from "./interfaces";
/**
* Publishes a message to a topic on the pub/sub hub. All arguments after
* the first will be passed to the subscribers, so any number of arguments
* can be provided (not just event).
*/
export declare function publish(topic: string | ExtensionEvent, ...event: any[]): boolean;
/**
* Subscribes to a topic on the pub/sub hub
*/
export declare function subscribe(topic: string | ExtensionEvent, listener: EventListener | Function): Handle;