-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add types for WebAssembly #1675
Conversation
@sh7dm Thanks. @kitsonk I'm playing around with how to import the wasm types ... Do you have any suggestions? Currently I get this:
|
@ry I am not overly impressed with the Definitely Typed types. There are a few issues with them and how they vary from the spec. Because of the way we generate the library, we only deal with types where we have functional code and depend upon a lib for everything else that is built in. So I would propose to add a lib specifically for web Assembly and prepend that to the runtime lib along side the esnext one. I have a branch where I am doing that. It will require a change to make the lib builder more flexible as well. |
@kitsonk Ok sounds good. Is |
While my idea works, because the lib isn't included with the standard libs with TypeScript which means in editors, you will just get errors and the |
/cc @ry