mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-22 16:24:11 +01:00
Use generated types for FolderActionPlugin and WorkspaceActionPlugin
This commit is contained in:
1 parent
cdd5ba3c83
commit
8e1959b7c3
2 files changed
+2
-12
No files matched your search
@@ -1,10 +1,5 @@
|
||||
import type { CallFolderActionArgs, FolderAction } from '../bindings/gen_events';
|
||||
import type { Context } from './Context';
|
||||
import type { Folder } from '../bindings/gen_models';
|
||||
import type { Icon } from '../bindings/gen_events';
|
||||
|
||||
export type FolderAction = { label: string; icon?: Icon };
|
||||
|
||||
export type CallFolderActionArgs = { folder: Folder };
|
||||
|
||||
export type FolderActionPlugin = FolderAction & {
|
||||
onSelect(ctx: Context, args: CallFolderActionArgs): Promise<void> | void;
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import type { CallWorkspaceActionArgs, WorkspaceAction } from '../bindings/gen_events';
|
||||
import type { Context } from './Context';
|
||||
import type { Workspace } from '../bindings/gen_models';
|
||||
import type { Icon } from '../bindings/gen_events';
|
||||
|
||||
export type WorkspaceAction = { label: string; icon?: Icon };
|
||||
|
||||
export type CallWorkspaceActionArgs = { workspace: Workspace };
|
||||
|
||||
export type WorkspaceActionPlugin = WorkspaceAction & {
|
||||
onSelect(ctx: Context, args: CallWorkspaceActionArgs): Promise<void> | void;
|
||||
|
||||
Reference in new issue
Block a user