From a224ae7013d26d98e70a570ec2d75a27e0738079 Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Sat, 2 Nov 2024 16:35:58 +0800 Subject: [PATCH] refactor: specify generator return type --- packages/language-core/lib/codegen/template/elementEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-core/lib/codegen/template/elementEvents.ts b/packages/language-core/lib/codegen/template/elementEvents.ts index 092ba4ad57..2184c7aa3e 100644 --- a/packages/language-core/lib/codegen/template/elementEvents.ts +++ b/packages/language-core/lib/codegen/template/elementEvents.ts @@ -17,7 +17,7 @@ export function* generateElementEvents( componentInstanceVar: string, emitVar: string, eventsVar: string -): Generator { +): Generator { let usedComponentEventsVar = false; let propsVar: string | undefined; for (const prop of node.props) {