Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1591·wasm-pack

add a way to generate `tsconfig.json` files and change the `"target"` property

Author: Bishops-exeCreated Jun 12, 2026Updated Jun 12, 2026

Feature description

I want to use Map<K, V> , but my code editor generates an error because the default "target" is "es5" and Map was introduced in es6

Basic example

rust

#[wasm_bindgen(typescript_custom_section)]
const TS_APPEND_CONTENT: &'static str = "
type XYZ<K, V> = Map<K, V>
";

Source: wasm-bindgen/wasm-pack

View original on GitHubView discussion on GitHub