Skip to content

Commit

Permalink
Use bigint instead of BigInt in generated TypeScript (rustwasm#2925)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamolucko authored and expenses committed Jun 14, 2022
1 parent e93b256 commit ee0a1b5
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 ee0a1b5

Please sign in to comment.