From e6cf455e938741137d0bc26cc4d1523c25b6b8d5 Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Tue, 31 Dec 2024 22:15:50 +0800 Subject: [PATCH] fix: optional --- packages/language-core/lib/codegen/template/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/language-core/lib/codegen/template/index.ts b/packages/language-core/lib/codegen/template/index.ts index f8af0d606e..b19c0d461d 100644 --- a/packages/language-core/lib/codegen/template/index.ts +++ b/packages/language-core/lib/codegen/template/index.ts @@ -19,11 +19,11 @@ export interface TemplateCodegenOptions { scriptSetupImportComponentNames: Set; destructuredPropNames: Set; templateRefNames: Set; - hasDefineSlots: boolean; - slotsAssignName: string | undefined; - propsAssignName: string | undefined; + hasDefineSlots?: boolean; + slotsAssignName?: string; + propsAssignName?: string; inheritAttrs: boolean; - selfComponentName: string | undefined; + selfComponentName?: string; } export function* generateTemplate(options: TemplateCodegenOptions): Generator {