From 7cdf2656da4f55f6aff989ea89a61e2913f6eb18 Mon Sep 17 00:00:00 2001 From: Kev Date: Sun, 19 Jan 2025 13:57:41 -0600 Subject: [PATCH] Fix issue of type i64 in Rust not properly getting converted to BigInt in TypeScript (#858) * Fix issue of type i64 / u64 in Rust not properly getting converted to BigInt in TypeScript --- capi/bind_gen/src/wasm_bindgen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capi/bind_gen/src/wasm_bindgen.rs b/capi/bind_gen/src/wasm_bindgen.rs index da3673f8..db945f01 100644 --- a/capi/bind_gen/src/wasm_bindgen.rs +++ b/capi/bind_gen/src/wasm_bindgen.rs @@ -27,11 +27,11 @@ fn get_hl_type_without_null(ty: &Type) -> String { "i8" => "number", "i16" => "number", "i32" => "number", - "i64" => "number", + "i64" => "BigInt", "u8" => "number", "u16" => "number", "u32" => "number", - "u64" => "number", + "u64" => "BigInt", "usize" => "number", "isize" => "number", "f32" => "number",