forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng-stomp.d.ts
36 lines (20 loc) · 882 Bytes
/
ng-stomp.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Type definitions for ngStomp
// Project: https://github.com/beevelop/ng-stomp
// Definitions by: Lukasz Potapczuk <https://github.com/lpotapczuk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
interface ngStomp {
sock:any;
stomp:any;
debug:any;
off: any;
setDebug:(callback:Function)=> void;
connect: (endpoint:string, headers?:Headers)=> angular.IHttpPromise<any>;
disconnect: (callback:()=>void) => angular.IHttpPromise<any>;
subscribe: (destination:string, callback:(payload:string, headers:Headers, res:Function)=>void, headers?:Headers, scope?:any) => any;
unsubscribe: () => any;
send: (destination:string, body:any, headers:Headers)=> any;
}
interface Headers {
[key: string]: any;
}