mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-15 12:42:26 +08:00
Fixed ng-stomp definitions
This commit is contained in:
1 parent
612f58ac6a
commit
4bc8a55f65
2 files changed
+5
-2
No files matched your search
@@ -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