WBG has an internal ABI that is unstable and should not be relied upon by users. As a consequence, all functions with the #[wasm_bindgen] should not be used directly by users. However, the TS type definitions for WASM modules include these functions, despite them being internal.
Proposed Solution
Don't include internal function in the type definitons.
Motivation
See this comment.
WBG has an internal ABI that is unstable and should not be relied upon by users. As a consequence, all functions with the
#[wasm_bindgen]
should not be used directly by users. However, the TS type definitions for WASM modules include these functions, despite them being internal.Proposed Solution
Don't include internal function in the type definitons.