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

Update init() typings #1520

Merged
merged 2 commits into from
May 9, 2019
Merged

Update init() typings #1520

merged 2 commits into from
May 9, 2019

Conversation

darthtrevino
Copy link
Contributor

@darthtrevino darthtrevino commented May 9, 2019

The JavaScript output emits a 'init' function that is the default export. This PR updates the TypeScript output so that it marks init as the default export instead of a named export.

Fixes #1517
Fixes rustwasm/wasm-pack/issues/644

@darthtrevino darthtrevino changed the title Update init functions typings definition Update init()'s typings definition May 9, 2019
@darthtrevino darthtrevino changed the title Update init()'s typings definition Update init()'s typings May 9, 2019
@darthtrevino darthtrevino changed the title Update init()'s typings Update init() typings May 9, 2019
@alexcrichton alexcrichton merged commit 8ef820a into rustwasm:master May 9, 2019
@alexcrichton
Copy link
Contributor

Thanks!

@darthtrevino darthtrevino deleted the bugfix/1517_typings branch May 9, 2019 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants