From 71034df84333f3993f2358e4861294fa856e245c Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 20 Mar 2018 17:13:34 -0700 Subject: [PATCH] Add UMD global declaration to index.d.ts 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 --- types/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 720180d2a5a..a74a371484b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2,6 +2,8 @@ import { Vue } from "./vue"; export default Vue; +export as namespace Vue; + export { CreateElement, VueConstructor