You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get them work without import you can create custom type definition with declare global:
//global.d.ts - name does not matterimport{VueConstructor}from'vue'declare global {constVue: VueConstructor}
The text was updated successfully, but these errors were encountered:
realmerx
changed the title
Improve typescript documentation to show how to use vue without imports that require module bundler
Improve typescript documentation to show how to use vue without imports that would require module bundler
Mar 3, 2019
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: