From 09fb4974db75b33e20ba8b1498b639e22b93696b Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 11 Jan 2022 18:05:10 +0700 Subject: [PATCH] action interfaces --- src/runtime/action/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/runtime/action/index.ts diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts new file mode 100644 index 0000000000..d5c303a888 --- /dev/null +++ b/src/runtime/action/index.ts @@ -0,0 +1,8 @@ +export interface ActionReturn { + update?: (parameters: Parameters) => void; + destroy?: () => void; +} + +export interface Action { + (node: HTMLElement, parameters: Parameters): ActionReturn; +}