Skip to content

Commit

Permalink
Use bigint instead of BigInt in generated TypeScript (#2925)
Browse files Browse the repository at this point in the history
Fixes #2911
  • Loading branch information
Liamolucko committed Jun 3, 2022
1 parent a81983b commit 0c7126c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/binding.rs
Expand Up @@ -1304,7 +1304,7 @@ fn adapter2ts(ty: &AdapterType, dst: &mut String) {
| AdapterType::U32
| AdapterType::F32
| AdapterType::F64 => dst.push_str("number"),
AdapterType::I64 | AdapterType::S64 | AdapterType::U64 => dst.push_str("BigInt"),
AdapterType::I64 | AdapterType::S64 | AdapterType::U64 => dst.push_str("bigint"),
AdapterType::String => dst.push_str("string"),
AdapterType::Externref => dst.push_str("any"),
AdapterType::Bool => dst.push_str("boolean"),
Expand Down

0 comments on commit 0c7126c

Please sign in to comment.