Skip to content

Commit

Permalink
types: add UMD global declaration to index.d.ts (#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 yyx990803 committed Mar 22, 2018
1 parent 43551b4 commit 49385e1
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 49385e1

Please sign in to comment.