summaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/actions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/workspaces/actions.ts')
-rw-r--r--src/features/workspaces/actions.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/features/workspaces/actions.ts b/src/features/workspaces/actions.ts
index b32bd7c86..5f3fefec4 100644
--- a/src/features/workspaces/actions.ts
+++ b/src/features/workspaces/actions.ts
@@ -2,12 +2,17 @@ import PropTypes from 'prop-types';
2import Workspace from './models/Workspace'; 2import Workspace from './models/Workspace';
3import { createActionsFromDefinitions } from '../../actions/lib/actions'; 3import { createActionsFromDefinitions } from '../../actions/lib/actions';
4 4
5type WorkspaceArg = { workspace: Workspace };
5export interface WorkspaceActions { 6export interface WorkspaceActions {
6 openWorkspaceSettings: () => void; 7 openWorkspaceSettings: () => void;
7 toggleWorkspaceDrawer: () => void; 8 toggleWorkspaceDrawer: () => void;
8 deactivate: () => void; 9 deactivate: () => void;
9 activate: (options: any) => void; 10 activate: (options: any) => void;
10 edit: ({ workspace }: { workspace: Workspace }) => void; 11 edit: (workspaceArg: WorkspaceArg) => void;
12 create: ({ name }: { name: string }) => void;
13 delete: (workspaceArg: WorkspaceArg) => void;
14 update: (workspaceArg: WorkspaceArg) => void;
15 toggleKeepAllWorkspacesLoadedSetting: () => void;
11} 16}
12 17
13export default createActionsFromDefinitions<WorkspaceActions>( 18export default createActionsFromDefinitions<WorkspaceActions>(