Skip to content

Commit 0c7126c

Browse files
authored
Use bigint instead of BigInt in generated TypeScript (#2925)
Fixes #2911
1 parent a81983b commit 0c7126c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/binding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ fn adapter2ts(ty: &AdapterType, dst: &mut String) {
13041304
| AdapterType::U32
13051305
| AdapterType::F32
13061306
| AdapterType::F64 => dst.push_str("number"),
1307-
AdapterType::I64 | AdapterType::S64 | AdapterType::U64 => dst.push_str("BigInt"),
1307+
AdapterType::I64 | AdapterType::S64 | AdapterType::U64 => dst.push_str("bigint"),
13081308
AdapterType::String => dst.push_str("string"),
13091309
AdapterType::Externref => dst.push_str("any"),
13101310
AdapterType::Bool => dst.push_str("boolean"),

0 commit comments

Comments
 (0)