Skip to content

Commit

Permalink
types: add UMD global declaration to index.d.ts (vuejs#7868)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RyanCavanaugh authored and hefeng committed Jan 25, 2019
1 parent 4025c1c commit 600039d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Vue } from "./vue";

export default Vue;

export as namespace Vue;

export {
CreateElement,
VueConstructor
Expand Down

0 comments on commit 600039d

Please sign in to comment.