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: