-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[3.5.1] Incorrect generated declaration file #31676
Comments
It's fine in TS ~3.4 btw. |
This breaks a lot of monorepos using project references since they all rely on declaration files. This makes 3.5 unusable for us. Otherwise no problems with the migration though. |
A workaround for now, |
Cool! Thanks for fixing @weswigham I see the 3.6 milestone is linked here. Would it be possible to get this in a patch release instead? I'm pretty desprerate 😅 |
…espace members (microsoft#31971) * Fake up a namespace enclosing declaration when generating expando namespace members * Fix microsoft#31676
Thanks! This issue is now fixed in TS 3.5.3 |
Issue microsoft/TypeScript#31676 got fixed and released in ts 3.5.3.
TypeScript Version: 3.5.1, 3.6.0-dev.20190530
Search Terms:
declaration, generated types, incorrect default export
Code
run
tsc --declaration
Expected behavior:
Actual behavior:
Typescript 3.5.1 is adding a default export which is incorrect.
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: