From 4ed7251873c3b1940cbed72eb696cdcdf9c9bfda Mon Sep 17 00:00:00 2001 From: proudparrot2 Date: Wed, 25 Oct 2023 07:31:22 -0500 Subject: [PATCH] =?UTF-8?q?[=E2=9C=A8]=20Added=20type=20for=20FlowPlugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/types.ts b/src/types.ts index efc497f..ef39528 100644 --- a/src/types.ts +++ b/src/types.ts @@ -11,6 +11,18 @@ export interface AppOpenedEvent extends CustomEvent { } } +export interface FlowPlugin { + name: string + pkg: string + version?: string + authors?: string[] + + init: (data: any) => void | Promise + openWindow?: (data: any) => FlowWindow | Promise + addStatusbarItem: (data: any) => void | Promise + loadTheme: (data: any) => void | Promise +} + export interface AppClosedEvent extends CustomEvent { detail: { win: FlowWindow