From 461fdf57a3727a2b9e4e11dbfa8d60775c7e6bee Mon Sep 17 00:00:00 2001 From: Luis Ball Date: Thu, 15 Apr 2021 12:19:57 -0400 Subject: [PATCH] chore(shims): make vue shim use defineComponent Allows .vue single file components to be imported and used. Since the Global Vue API has been deprecated, this file needs to import the return type of defineComponent for TypeScript to be able to import and use the single file components. --- src/shims-vue.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts index 8f6f4102..04dcf924 100644 --- a/src/shims-vue.d.ts +++ b/src/shims-vue.d.ts @@ -1,4 +1,5 @@ declare module '*.vue' { - import Vue from 'vue'; - export default Vue; -} + import { defineComponent } from 'vue'; + const component: ReturnType; + export default component; +} \ No newline at end of file