From a41b2c03bd13bd9250faa0ca09723f83e9e8fb99 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 11 Feb 2021 11:32:44 +0800 Subject: [PATCH] types: add vue sfc shim (#8131) --- src/vue-sfc-shim.d.ts | 6 ++++++ src/{vue-shim.d.ts => vue-tsx-shim.d.ts} | 0 2 files changed, 6 insertions(+) create mode 100644 src/vue-sfc-shim.d.ts rename src/{vue-shim.d.ts => vue-tsx-shim.d.ts} (100%) diff --git a/src/vue-sfc-shim.d.ts b/src/vue-sfc-shim.d.ts new file mode 100644 index 000000000..6fc7d745e --- /dev/null +++ b/src/vue-sfc-shim.d.ts @@ -0,0 +1,6 @@ +declare module '*.vue' { + // eslint-disable-next-line + import { DefineComponent } from 'vue'; + const Component: DefineComponent; + export default Component; +} diff --git a/src/vue-shim.d.ts b/src/vue-tsx-shim.d.ts similarity index 100% rename from src/vue-shim.d.ts rename to src/vue-tsx-shim.d.ts