From 56b718f5978398d1690f239ecf62090c0ff4bac2 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 3 Sep 2023 09:47:29 +0800 Subject: [PATCH] fix(auto-import-resolver): type mismatch in TS projects (#12243) --- packages/vant-auto-import-resolver/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-auto-import-resolver/src/index.ts b/packages/vant-auto-import-resolver/src/index.ts index af8e3454f..107d7060f 100644 --- a/packages/vant-auto-import-resolver/src/index.ts +++ b/packages/vant-auto-import-resolver/src/index.ts @@ -43,7 +43,7 @@ export function VantResolver(options: VantResolverOptions = {}) { const moduleType = getModuleType(ssr); return { - type: 'component', + type: 'component' as const, resolve: (name: string) => { if (name.startsWith('Van')) { const partialName = name.slice(3);