##// END OF EJS Templates
some fixes after testing
some fixes after testing

File last commit:

r0:ab570232df7d default
r5:af2703f9110e default
Show More
OpenAjax.d.ts
42 lines | 1.3 KiB | video/mp2t | TypeScriptLexer
cin
Initial commit, project structure.
r0 interface OpenAjaxLibrary {
prefix: string;
namespaceURI: string;
version: string;
extraData: any;
}
interface OpenAjaxHub {
implementer: string;
implVersion: string;
specVersion: string;
implExtraData: { [prop: string]: any };
libraries: { [name: string]: OpenAjaxLibrary };
registerLibrary(prefix: string, nsURL: string, extra: any): void;
unregisterLibrary(prefix: string): void;
_subscriptions: { c: Object; s: any[]; };
_cleanup: any[];
_subIndex: number;
_pubDepth: number;
subscribe(name: string, callback: (name: string, msg: any, d: any) => void, scope?: Object, subscriberData?: any, filter?: (name: string, msg: any, d: any) => boolean): string;
publish(name: string, message: any): void;
unsubscribe(sub: string): void;
_subscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sub: Object): void;
_publish(tree: { c: Object; s: any[]; }, path: string[], index: number, name: string, msg: any): void;
_unsubscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sid: number): void;
/**
* The following function is provided for automatic testing purposes.
* It is not expected to be deployed in run-time OpenAjax Hub implementations.
*/
reinit(): void;
}
interface OpenAjax {
new (): OpenAjax;
hub: OpenAjaxHub;
}
declare var OpenAjax: OpenAjax;