summaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/actions.ts
diff options
context:
space:
mode:
authorLibravatar Muhamed <unknown>2022-11-24 02:56:10 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-11-25 05:04:25 +0530
commitf92933c396db9e94ffd297c41add86de88dfc6c6 (patch)
tree57789f7f64c618086c3792833d076244d879aa75 /src/features/workspaces/actions.ts
parentfix: use 'Route' from 'react-router-dom' package (diff)
downloadferdium-app-f92933c396db9e94ffd297c41add86de88dfc6c6.tar.gz
ferdium-app-f92933c396db9e94ffd297c41add86de88dfc6c6.tar.zst
ferdium-app-f92933c396db9e94ffd297c41add86de88dfc6c6.zip
chore: transform workspace action store and todo store into ts
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>(