|
1 | 1 | interface OpenAjaxLibrary { |
2 | | - prefix: string; |
3 | | - namespaceURI: string; |
4 | | - version: string; |
5 | | - extraData: any; |
| 2 | + prefix: string; |
| 3 | + namespaceURI: string; |
| 4 | + version: string; |
| 5 | + extraData: any; |
6 | 6 | } |
7 | 7 |
|
8 | 8 | interface OpenAjaxHub { |
9 | | - implementer: string; |
10 | | - implVersion: string; |
11 | | - specVersion: string; |
12 | | - implExtraData: { [prop: string]: any }; |
13 | | - libraries: { [name: string]: OpenAjaxLibrary }; |
14 | | - registerLibrary(prefix: string, nsURL: string, extra: any): void; |
15 | | - unregisterLibrary(prefix: string): void; |
| 9 | + implementer: string; |
| 10 | + implVersion: string; |
| 11 | + specVersion: string; |
| 12 | + implExtraData: { [prop: string]: any }; |
| 13 | + libraries: { [name: string]: OpenAjaxLibrary }; |
| 14 | + registerLibrary(prefix: string, nsURL: string, extra: any): void; |
| 15 | + unregisterLibrary(prefix: string): void; |
16 | 16 |
|
17 | | - _subscriptions: { c: Object; s: any[]; }; |
18 | | - _cleanup: any[]; |
19 | | - _subIndex: number; |
20 | | - _pubDepth: number; |
| 17 | + _subscriptions: { c: Object; s: any[]; }; |
| 18 | + _cleanup: any[]; |
| 19 | + _subIndex: number; |
| 20 | + _pubDepth: number; |
21 | 21 |
|
22 | | - subscribe(name: string, callback: (name: string, msg: any, d: any) => void, scope?: Object, subscriberData?: any, filter?: (name: string, msg: any, d: any) => boolean): string; |
23 | | - publish(name: string, message: any): void; |
24 | | - unsubscribe(sub: string): void; |
| 22 | + subscribe(name: string, callback: (name: string, msg: any, d: any) => void, scope?: Object, subscriberData?: any, filter?: (name: string, msg: any, d: any) => boolean): string; |
| 23 | + publish(name: string, message: any): void; |
| 24 | + unsubscribe(sub: string): void; |
25 | 25 |
|
26 | | - _subscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sub: Object): void; |
27 | | - _publish(tree: { c: Object; s: any[]; }, path: string[], index: number, name: string, msg: any): void; |
28 | | - _unsubscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sid: number): void; |
| 26 | + _subscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sub: Object): void; |
| 27 | + _publish(tree: { c: Object; s: any[]; }, path: string[], index: number, name: string, msg: any): void; |
| 28 | + _unsubscribe(tree: { c: Object; s: any[]; }, path: string[], index: number, sid: number): void; |
29 | 29 |
|
30 | | - /** |
31 | | - * The following function is provided for automatic testing purposes. |
32 | | - * It is not expected to be deployed in run-time OpenAjax Hub implementations. |
33 | | - */ |
34 | | - reinit(): void; |
| 30 | + /** |
| 31 | + * The following function is provided for automatic testing purposes. |
| 32 | + * It is not expected to be deployed in run-time OpenAjax Hub implementations. |
| 33 | + */ |
| 34 | + reinit(): void; |
35 | 35 | } |
36 | 36 |
|
37 | 37 | interface OpenAjax { |
38 | | - new (): OpenAjax; |
39 | | - hub: OpenAjaxHub; |
| 38 | + new (): OpenAjax; |
| 39 | + hub: OpenAjaxHub; |
40 | 40 | } |
41 | 41 |
|
42 | 42 | declare var OpenAjax: OpenAjax; |
0 commit comments