Skip to content

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

Description

@Bishops-exe

💡 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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions