Browse Source

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
Ryan Cavanaugh 8 years ago
parent
commit
49385e1efa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      types/index.d.ts

+ 2 - 0
types/index.d.ts

@@ -2,6 +2,8 @@ import { Vue } from "./vue";
 
 export default Vue;
 
+export as namespace Vue;
+
 export {
   CreateElement,
   VueConstructor