-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Exporting function with property declaration causes invalid type emit #31918
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
Comments
Actually, even having just one will make it use |
The solution seems to be, function foo () {
}
foo.x = 32;
function bar () {
}
bar.x = 32;
export {foo, bar} |
It seems like this does not happen with TS 3.3 |
Related to, and possibly a duplicate of #31676, it looks like. |
Ah, yes, it is a duplicate of that. Thank you for finding it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeScript Version: 3.5.1
Search Terms:
function property declaration, emit, multiple
Code
Expected behavior:
Not have default exports
Actual behavior:
Playground Link:
Playground does not generate .d.ts files
Related Issues:
The text was updated successfully, but these errors were encountered: