From 0995a3f40f7b5fa589d6358e3c2103b57c62459f Mon Sep 17 00:00:00 2001 From: godotg Date: Tue, 26 Sep 2023 23:53:51 +0800 Subject: [PATCH] feat[ts]: compatible typescript inside class --- protocol/src/test/typescript/zfoo/buffer/Longbits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/test/typescript/zfoo/buffer/Longbits.ts b/protocol/src/test/typescript/zfoo/buffer/Longbits.ts index a538cace5..3bb8a20d7 100644 --- a/protocol/src/test/typescript/zfoo/buffer/Longbits.ts +++ b/protocol/src/test/typescript/zfoo/buffer/Longbits.ts @@ -43,7 +43,7 @@ class Longbits { /** * Converts this long bits to a long. */ - toLong(unsigned): Long { + toLong(unsigned: boolean): Long { return new Long(this.lo | 0, this.hi | 0, Boolean(unsigned)); };