From e31a7cdf5281fae34dd8e1b49397c5f6b87ec0ab Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 12 Jan 2022 11:35:14 +0700 Subject: [PATCH] make parameters optional, allow empty `use:action` --- 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 fe182b16d5..f712265c87 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -4,5 +4,5 @@ export interface ActionReturn { } export interface Action { - (node: HTMLElement, parameters: Parameters): void | ActionReturn; + (node: HTMLElement, parameters?: Parameters): void | ActionReturn; }