From 600039ddca7a6d9c2ef9952d3349d9ec134764fd Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 22 Mar 2018 06:58:04 -0700 Subject: [PATCH] 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 --- 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