From e284d68cbe0cfa039f4f1c9895eb1467e2d5c883 Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Tue, 28 Feb 2023 23:50:01 +0800 Subject: [PATCH] fix syntax errors --- src/runtime/action/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index 0c440e30a1cb..a1914da89af2 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -55,7 +55,7 @@ export interface ActionReturn = Record> { - (...args: [Parameter] extends [never] ? [node: Node] : undefined extends Parameter? [node: Node, parameter?: Parameter] : [node: Node, parameter: Parameter]): void | ActionReturn; + (...args: [Parameter] extends [never] ? [Node] : undefined extends Parameter? [Node, Parameter] : [Node, Parameter]): void | ActionReturn; } // Implementation notes: