-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
[TypeScript] Default export of the module has or is using private name 'VueConstructor' #6999
Labels
Comments
gluons
changed the title
Default export of the module has or is using private name 'VueConstructor'
[TypeScript] Default export of the module has or is using private name 'VueConstructor'
Nov 4, 2017
12 tasks
I've made a PR to expose export default {
install: install as PluginFunction<void>
} |
gluons
added a commit
to gluons/vue-thailand-address
that referenced
this issue
Nov 5, 2017
By @ktsn's comment in vuejs/vue#6999.
@relign Try importing import { VueConstructor } from 'vue';
/* or */
import Vue, { VueConstructor } from 'vue'; // With Vue |
5 tasks
I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.3
Reproduction link
https://github.com/gluons/vue-issue-6999
Steps to reproduce
Vue
ortypeof Vue
types.compilerOptions
->declaration
totrue
What is expected?
Able to build without error.
It should be able to export plugin/library with TypeScript declaration.
What is actually happening?
Default export of the module has or is using private name 'VueConstructor'
happened when built it.I'm developing Vue component with TypeScript.
I also need TypeScript to generate declaration for other TypeScript developer (And also JavaScript with Vetur 🙂).
But I face this error. 😢
The text was updated successfully, but these errors were encountered: