-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix export default in index.d.ts #1000
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
Conversation
This breaks in Typescript 2.6 with the error "The expression of an export assignment must be an identifier or qualified name in an ambient context." This commit also adds a small test that uses the default export, since no test existed previously.
types/index.d.ts
Outdated
Store, | ||
install | ||
}; | ||
export const _default: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why _default
is also exported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! My mistake. I'll remove it.
Thanks! |
Hi @ktsn do you have an idea of when this will make it into a release? I just ran into this while upgrading to TS 2.6 and I'm not sure if there's any resolution except for pinning to TS 2.5 until this fix is available. |
Please publish this change. |
v3.0.1 has been published. |
The default export in index.d.ts breaks in Typescript 2.6 with the error "The expression of an export assignment must be an identifier or qualified name in an ambient context."
This commit also adds a small test that uses the default export, since no test existed previously.
Fixes #999