From dbd676095b42aaebc783d5c89478306a453195a5 Mon Sep 17 00:00:00 2001 From: Soybean Date: Wed, 3 Aug 2022 22:38:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(projects):=20=E4=BF=AE=E5=A4=8D=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=9A=84TS=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/typings/package.d.ts | 13 +++++++++++++ tsconfig.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/typings/package.d.ts b/src/typings/package.d.ts index c0a75af11..e60a0242a 100644 --- a/src/typings/package.d.ts +++ b/src/typings/package.d.ts @@ -7,3 +7,16 @@ declare namespace BMap { } declare const TMap: any; + +declare module 'virtual:icons/*' { + import type { FunctionalComponent, SVGAttributes } from 'vue'; + + const component: FunctionalComponent; + export default component; +} +declare module '~icons/*' { + import type { FunctionalComponent, SVGAttributes } from 'vue'; + + const component: FunctionalComponent; + export default component; +} diff --git a/tsconfig.json b/tsconfig.json index f06bc912e..cd222d9cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "~/*": ["./*"], "@/*": ["./src/*"] }, - "types": ["node", "vite/client", "unplugin-icons/types/vue", "naive-ui/volar"] + "types": ["node", "vite/client", "naive-ui/volar"] }, "exclude": ["node_modules", "dist"] }