From 2372b6e74e799e96a265fd819d5565325e595e26 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Wed, 16 Feb 2022 17:43:52 +0700 Subject: [PATCH] actually only 1 and avoid conflict with TS utility --- src/runtime/action/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index d170e0589e..0ac5bd0a35 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -1,8 +1,8 @@ -export interface ActionReturn { - update?: (parameters: Parameters) => void; +export interface ActionReturn { + update?: (parameter: Parameter) => void; destroy?: () => void; } -export interface Action { - (node: Node, parameters?: Parameters): void | ActionReturn; +export interface Action { + (node: Node, parameter?: Parameter): void | ActionReturn; }