From 21e25276a1e42282117de1c48c3b8344aff3e84e Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Sat, 31 Aug 2024 03:30:16 +0800 Subject: [PATCH] fix: disable lib check on global types file --- packages/language-core/lib/codegen/globalTypes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/language-core/lib/codegen/globalTypes.ts b/packages/language-core/lib/codegen/globalTypes.ts index 2a733c60af..4625b03b96 100644 --- a/packages/language-core/lib/codegen/globalTypes.ts +++ b/packages/language-core/lib/codegen/globalTypes.ts @@ -2,7 +2,8 @@ import { getSlotsPropertyName } from '../utils/shared'; export function generateGlobalTypes(lib: string, target: number, strictTemplates: boolean) { const fnPropsType = `(K extends { $props: infer Props } ? Props : any)${strictTemplates ? '' : ' & Record'}`; - return ` + return `// @ts-nocheck + const __VLS_globalComponents = { ...{} as import('${lib}').GlobalComponents }; declare const __VLS_intrinsicElements: __VLS_IntrinsicElements;