Use generated types for FolderActionPlugin and WorkspaceActionPlugin

This commit is contained in:
Gregory Schier
2025-12-28 15:06:18 -08:00
parent cdd5ba3c83
commit 8e1959b7c3
2 changed files with 2 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;