mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Update stompjs types
Fix to correctly reflect actual library.
This commit is contained in:
Vendored
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user