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;