diff options
author | 2022-11-24 02:56:10 +0530 | |
---|---|---|
committer | 2022-11-25 05:04:25 +0530 | |
commit | f92933c396db9e94ffd297c41add86de88dfc6c6 (patch) | |
tree | 57789f7f64c618086c3792833d076244d879aa75 /src/features/workspaces/actions.ts | |
parent | fix: use 'Route' from 'react-router-dom' package (diff) | |
download | ferdium-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.ts | 7 |
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'; | |||
2 | import Workspace from './models/Workspace'; | 2 | import Workspace from './models/Workspace'; |
3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; | 3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; |
4 | 4 | ||
5 | type WorkspaceArg = { workspace: Workspace }; | ||
5 | export interface WorkspaceActions { | 6 | export 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 | ||
13 | export default createActionsFromDefinitions<WorkspaceActions>( | 18 | export default createActionsFromDefinitions<WorkspaceActions>( |