Skip to content

Improve WebAssembly import/export types - #755

Merged
Orta Therox (orta) merged 1 commit into
microsoft:masterfrom
RReverser:improve-wasm-imports-exports
Sep 23, 2019
Merged

Improve WebAssembly import/export types#755
Orta Therox (orta) merged 1 commit into
microsoft:masterfrom
RReverser:improve-wasm-imports-exports

Conversation

@RReverser

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor Author

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

Comment thread inputfiles/overridingTypes.json

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Can this be merged then?

@saschanaz

Copy link
Copy Markdown
Contributor

I unfortunately don't have a write access. Pinging Orta Therox (@orta)

@orta

Copy link
Copy Markdown
Contributor

Cool, the output looks 👍 to me. Thanks Ingvar Stepanyan (@RReverser) - Kagami Sascha Rosylight (@saschanaz) ping me anytime you want

@orta
Orta Therox (orta) merged commit 4d0dbad into microsoft:master Sep 23, 2019
@RReverser

Copy link
Copy Markdown
Contributor Author

Orta Therox (@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
Ingvar Stepanyan (RReverser) deleted the improve-wasm-imports-exports branch September 23, 2019 16:16
@RReverser

Copy link
Copy Markdown
Contributor Author

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

Ingvar Stepanyan (RReverser) added a commit to RReverser/TSJS-lib-generator that referenced this pull request Sep 23, 2019
@RReverser

Copy link
Copy Markdown
Contributor Author

Sent a follow-up PR.

Ingvar Stepanyan (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.
Nathan Shively-Sanders (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