Skip to content

Commit cd8177c

Browse files
RyanCavanaughaJean
authored andcommitted
types: add UMD global declaration to index.d.ts (vuejs#7868)
Users using Vue from e.g. the CDN might be using the global `.Vue` without importing the module. See https://www.typescriptlang.org/docs/handbook/modules.html for details on the syntax
1 parent 8802351 commit cd8177c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Vue } from "./vue";
22

33
export default Vue;
44

5+
export as namespace Vue;
6+
57
export {
68
CreateElement,
79
VueConstructor

0 commit comments

Comments
 (0)