Update stompjs types

Fix to correctly reflect actual library.
This commit is contained in:
Victor Moukhortov
2018-02-09 10:16:30 -05:00
committed by GitHub
parent 56ce1312c8
commit 75d6eb9895
+3 -3
View File
@@ -26,7 +26,7 @@ export class Client {
debug(...args: string[]): any;
connect(headers: { login: string, passcode: string, host?: string }, connectCallback: (frame?: Frame) => any, errorCallback?: (error: string) => any): any;
connect(headers: { login?: string, passcode?: string, host?: string }, connectCallback: (frame?: Frame) => any, errorCallback?: (error: string) => any): any;
connect(login: string, passcode: string, connectCallback: (frame?: Frame) => any, errorCallback?: (error: string) => any, host?: string): any;
disconnect(disconnectCallback: () => any, headers?: {}): any;
@@ -56,8 +56,8 @@ export class Frame {
toString(): string;
sizeOfUTF8(s: string): number;
unmarshall(datas: any): any;
marshall(command: string, headers?: {}, body?: string): any;
static unmarshall(datas: any): any;
static marshall(command: string, headers?: {}, body?: string): any;
}
export function client(url: string, protocols?: string | Array<string>): Client;