From db6f8ababd3966346e9397ae0ad495f37aebd32f Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Tue, 24 Aug 2021 19:18:31 +0800 Subject: [PATCH] fix: non-script-tag component should be any type in template --- .../src/use/useSfcEntryForTemplateLs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vscode-vue-languageservice/src/use/useSfcEntryForTemplateLs.ts b/packages/vscode-vue-languageservice/src/use/useSfcEntryForTemplateLs.ts index fa4644172f..c1cb820f3c 100644 --- a/packages/vscode-vue-languageservice/src/use/useSfcEntryForTemplateLs.ts +++ b/packages/vscode-vue-languageservice/src/use/useSfcEntryForTemplateLs.ts @@ -47,8 +47,8 @@ export function useSfcEntryForTemplateLs( else { content += `export var __VLS_options = {};\n`; content += `export var __VLS_name = undefined;\n`; - content += `var __VLS_component_ts = __VLS_defineComponent({});\n`; - content += `export var __VLS_component = __VLS_defineComponent({});\n`; + content += `declare var __VLS_component_ts: any;\n`; + content += `export declare var __VLS_component: any;\n`; } content += `declare var __VLS_ctx: __VLS_PickNotAny, ReturnType>;\n`; content += `declare var __VLS_ComponentsWrap: typeof __VLS_options & { components: { } };\n`;