We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f2f0a3 commit aed75a4Copy full SHA for aed75a4
rust/bufferfish/src/compiler.rs
@@ -493,11 +493,11 @@ fn get_typescript_type(ty: Type) -> String {
493
494
match path.get_ident().map(|ident| ident.to_string()).as_deref() {
495
#[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") => {
+ Some("u8") | Some("u16") | Some("u32") | Some("i8") | Some("i16") | Some("i32")
+ => {
499
"number".to_string()
500
},
+ Some("u64") | Some("u128") | Some("i64") | Some("i128") => "BigInt".to_string(),
501
Some("bool") => "boolean".to_string(),
502
Some("String") => "string".to_string(),
503
_ => path
0 commit comments