From fd484329a6ff88093a005c99d5a45663567313bf Mon Sep 17 00:00:00 2001 From: Sri Krishna Paritala Date: Fri, 13 Sep 2024 11:45:50 +0530 Subject: [PATCH] Fix type type error in `bigint` test Signed-off-by: Sri Krishna Paritala --- packages/connect-web/browserstack/bigint.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/connect-web/browserstack/bigint.spec.ts b/packages/connect-web/browserstack/bigint.spec.ts index 2a5abbd16..e661b1af2 100644 --- a/packages/connect-web/browserstack/bigint.spec.ts +++ b/packages/connect-web/browserstack/bigint.spec.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { create, fromBinary, toBinary } from "@bufbuild/protobuf"; +import { create, fromBinary, protoInt64, toBinary } from "@bufbuild/protobuf"; import { Int64ValueSchema } from "@bufbuild/protobuf/wkt"; describe("bigint", () => { @@ -23,8 +23,7 @@ describe("bigint", () => { Int64ValueSchema, toBinary( Int64ValueSchema, - //@ts-expect-error TODO: fix the typescript error. - create(Int64ValueSchema, { value: "3409819015" }), + create(Int64ValueSchema, { value: protoInt64.parse("3409819015") }), ), ).value, ),