[✨] Added type for FlowPlugin
This commit is contained in:
parent
7a728fca70
commit
4ed7251873
1 changed files with 12 additions and 0 deletions
12
src/types.ts
12
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<void>
|
||||
openWindow?: (data: any) => FlowWindow | Promise<FlowWindow>
|
||||
addStatusbarItem: (data: any) => void | Promise<void>
|
||||
loadTheme: (data: any) => void | Promise<void>
|
||||
}
|
||||
|
||||
export interface AppClosedEvent extends CustomEvent {
|
||||
detail: {
|
||||
win: FlowWindow
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue