Skip to content

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

Merged
merged 3 commits into from
Oct 18, 2017

Conversation

sandersn
Copy link
Contributor

@sandersn sandersn commented Oct 17, 2017

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

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: {
Copy link
Member

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?

Copy link
Contributor Author

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.

@ktsn ktsn merged commit 0ba995e into vuejs:dev Oct 18, 2017
@ktsn
Copy link
Member

ktsn commented Oct 18, 2017

Thanks!

@sandersn sandersn deleted the fix-export-default-in-index.d.ts branch October 18, 2017 16:25
@skray
Copy link

skray commented Oct 31, 2017

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.

@lishewen
Copy link

lishewen commented Nov 1, 2017

Please publish this change.
vuex 3.0.0 no support typescript 2.6

@ktsn
Copy link
Member

ktsn commented Nov 1, 2017

v3.0.1 has been published.

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.

4 participants