From bcc5bc34cb4d18fedb2e68ae3585c512b2fcffd6 Mon Sep 17 00:00:00 2001 From: Victor Moukhortov Date: Fri, 9 Feb 2018 11:05:39 -0500 Subject: [PATCH] fix: stompjs static Frame.sizeOfUTF8 --- types/stompjs/index.d.ts | 2 +- types/stompjs/stompjs-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/stompjs/index.d.ts b/types/stompjs/index.d.ts index d1c6696e56..b1e48dab53 100644 --- a/types/stompjs/index.d.ts +++ b/types/stompjs/index.d.ts @@ -55,7 +55,7 @@ export class Frame { constructor(command: string, headers?: {}, body?: string); toString(): string; - sizeOfUTF8(s: string): number; + static sizeOfUTF8(s: string): number; static unmarshall(datas: any): any; static marshall(command: string, headers?: {}, body?: string): any; } diff --git a/types/stompjs/stompjs-tests.ts b/types/stompjs/stompjs-tests.ts index b9fb15cc7e..d745b09a4d 100644 --- a/types/stompjs/stompjs-tests.ts +++ b/types/stompjs/stompjs-tests.ts @@ -93,7 +93,7 @@ frame = new Stomp.Frame('command', {}, 'body'); frame.toString(); -frame.sizeOfUTF8('abc'); +Stomp.Frame.sizeOfUTF8('abc'); Stomp.Frame.unmarshall(0); Stomp.Frame.unmarshall('data');