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

Improve WebAssembly import/export types #755

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

RReverser
Copy link
Contributor

Sets more specific types to allowed imports/exports for WebAssembly.

Sets more specific types to allowed imports/exports for WebAssembly.
@RReverser
Copy link
Contributor Author

@saschanaz Ping, can you please take a look? Among improvements, this fixes a small bug I introduced in #752.

Copy link
Contributor

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit.

@RReverser
Copy link
Contributor Author

@saschanaz Can this be merged then?

@saschanaz
Copy link
Contributor

I unfortunately don't have a write access. Pinging @orta

@orta
Copy link
Contributor

orta commented Sep 23, 2019

Cool, the output looks 👍 to me. Thanks @RReverser - @saschanaz ping me anytime you want

@orta orta merged commit 4d0dbad into microsoft:master Sep 23, 2019
@RReverser
Copy link
Contributor Author

@orta Thanks! Do you know if I need to do anything further to get definitions updated on the TypeScript side or are they pulled from here automatically on new release?

@RReverser RReverser deleted the improve-wasm-imports-exports branch September 23, 2019 16:16
@RReverser
Copy link
Contributor Author

Argh, I just noticed that I missed instantiateStreaming in overrides 🤦‍♂️

RReverser added a commit to RReverser/TSJS-lib-generator that referenced this pull request Sep 23, 2019
@RReverser
Copy link
Contributor Author

Sent a follow-up PR.

RReverser added a commit to RReverser/TSJS-lib-generator that referenced this pull request Sep 30, 2019
Based on microsoft#755 and microsoft#766, improves imports param in constructor instead.
sandersn pushed a commit to microsoft/TypeScript that referenced this pull request Oct 14, 2019
This bumps generated bindings to include microsoft/TypeScript-DOM-lib-generator#767.

Note that other related APIs were already updated in microsoft/TypeScript-DOM-lib-generator#755 and microsoft/TypeScript-DOM-lib-generator#756 and included in current TypeScript beta.

Unfortunately, this one slipped under the radar, but it would be really great to include these changes in beta too for consistency between different WebAssembly methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants