From 7ca8eac182739ab64f4431ee5d3f598a19538562 Mon Sep 17 00:00:00 2001 From: Sri Krishna <93153132+srikrsna-buf@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:49:06 +0530 Subject: [PATCH] Fix type type error in `bigint` test (#1229) 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, ),