From 336872dfd7b3f4758b8ce485b79f89c05a319cf5 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 12 Jan 2022 11:38:25 +0700 Subject: [PATCH] allow Element to be inferred and constrained --- src/runtime/action/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index f712265c87..3292508505 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -3,6 +3,6 @@ export interface ActionReturn { destroy?: () => void; } -export interface Action { - (node: HTMLElement, parameters?: Parameters): void | ActionReturn; +export interface Action { + (node: Node, parameters?: Parameters): void | ActionReturn; }