-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Improve typescript documentation to show how to use vue without imports that would require module bundler #2042
Comments
Sorry, I'm lost. What part of the documentation are we looking at? |
No, I am sorry for not being clear enough :) https://vuejs.org/v2/guide/typescript.html |
Right, thanks! Still, I'm not very sure what change(s) you want to see there. Do you think a PR would explain your intention better? |
Sure, I'll create a pull request for this. |
Finally got time to do that :) |
Thank you for spotting this issue and for your work on the related PR! Closing this now as vuejs/vue#9912 got merged and now we can use global |
Since currently type definitions for vue need to be exported, you have to use import:
To get them work without import you can create custom type definition with declare global:
The text was updated successfully, but these errors were encountered: