Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Feb 28, 2023
1 parent 5320874 commit e284d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface ActionReturn<Parameter = never, Attributes extends Record<strin
* Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action
*/
export interface Action<Element = HTMLElement, Parameter = never, Attributes extends Record<string, any> = Record<never, any>> {
<Node extends Element>(...args: [Parameter] extends [never] ? [node: Node] : undefined extends Parameter? [node: Node, parameter?: Parameter] : [node: Node, parameter: Parameter]): void | ActionReturn<Parameter, Attributes>;
<Node extends Element>(...args: [Parameter] extends [never] ? [Node] : undefined extends Parameter? [Node, Parameter] : [Node, Parameter]): void | ActionReturn<Parameter, Attributes>;
}

// Implementation notes:
Expand Down

0 comments on commit e284d68

Please sign in to comment.