Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide functions exported with #[wasm_bindgen] in generated TS #4271

Open
RunDevelopment opened this issue Nov 14, 2024 · 0 comments
Open

Hide functions exported with #[wasm_bindgen] in generated TS #4271

RunDevelopment opened this issue Nov 14, 2024 · 0 comments

Comments

@RunDevelopment
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant