Skip to content

Commit 49385e1

Browse files
RyanCavanaughyyx990803
authored andcommitted
types: add UMD global declaration to index.d.ts (#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 43551b4 commit 49385e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/index.d.ts

+2
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)