Skip to content

Commit 7cdf265

Browse files
author
Kev
authored
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
1 parent a6a2881 commit 7cdf265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capi/bind_gen/src/wasm_bindgen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ fn get_hl_type_without_null(ty: &Type) -> String {
2727
"i8" => "number",
2828
"i16" => "number",
2929
"i32" => "number",
30-
"i64" => "number",
30+
"i64" => "BigInt",
3131
"u8" => "number",
3232
"u16" => "number",
3333
"u32" => "number",
34-
"u64" => "number",
34+
"u64" => "BigInt",
3535
"usize" => "number",
3636
"isize" => "number",
3737
"f32" => "number",

0 commit comments

Comments
 (0)