mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-31 11:40:47 +08:00
Fixed ng-stomp definitions
This commit is contained in:
@@ -9,12 +9,13 @@ module ngStompTesting {
|
||||
class test {
|
||||
constructor(private ngstomp:ngStomp) {
|
||||
var connectHeaders ={
|
||||
"Lol": "user",
|
||||
"Auth": "user",
|
||||
"Accept": "lol"
|
||||
};
|
||||
|
||||
ngstomp.connect('/endpoint', connectHeaders)
|
||||
|
||||
|
||||
// frame = CONNECTED headers
|
||||
.then(function (frame) {
|
||||
|
||||
|
||||
Vendored
+3
-1
@@ -17,7 +17,7 @@ interface ngStomp {
|
||||
|
||||
disconnect: (callback:()=>void) => angular.IHttpPromise<any>;
|
||||
|
||||
subscribe: (destination:string, callback:Function, headers?:Headers, scope?:any) => any;
|
||||
subscribe: (destination:string, callback:(payload:string, headers:Headers, res:Function)=>void, headers?:Headers, scope?:any) => any;
|
||||
|
||||
unsubscribe: () => any;
|
||||
|
||||
@@ -32,3 +32,5 @@ interface ngStomp {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user