Quellcode durchsuchen

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 vor 8 Jahren
Ursprung
Commit
49385e1efa
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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 default Vue;
 
 
+export as namespace Vue;
+
 export {
 export {
   CreateElement,
   CreateElement,
   VueConstructor
   VueConstructor