Skip to content

Commit aed75a4

Browse files
committed
Generate 64/128 bit numbers as bigints
1 parent 1f2f0a3 commit aed75a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/bufferfish/src/compiler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,11 @@ fn get_typescript_type(ty: Type) -> String {
493493

494494
match path.get_ident().map(|ident| ident.to_string()).as_deref() {
495495
#[rustfmt::skip]
496-
Some("u8") | Some("u16") | Some("u32") | Some("u64") |
497-
Some("u128") | Some("i8") | Some("i16") | Some("i32") |
498-
Some("i64") | Some("i128") => {
496+
Some("u8") | Some("u16") | Some("u32") | Some("i8") | Some("i16") | Some("i32")
497+
=> {
499498
"number".to_string()
500499
},
500+
Some("u64") | Some("u128") | Some("i64") | Some("i128") => "BigInt".to_string(),
501501
Some("bool") => "boolean".to_string(),
502502
Some("String") => "string".to_string(),
503503
_ => path

0 commit comments

Comments
 (0)