diff --git a/types/stompjs/index.d.ts b/types/stompjs/index.d.ts index 008b99b511..d1c6696e56 100644 --- a/types/stompjs/index.d.ts +++ b/types/stompjs/index.d.ts @@ -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): Client;