diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-11-20 17:35:21 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 17:35:21 +0530 |
commit | 86f9ab693dcad951271f727046214b03d91ebd69 (patch) | |
tree | 3d32ff4814b5484495b811c5fe0ebea4805f4e55 /src/features/todos/actions.ts | |
parent | 6.2.1-nightly.47 [skip ci] (diff) | |
download | ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.gz ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.tar.zst ferdium-app-86f9ab693dcad951271f727046214b03d91ebd69.zip |
Transform Todo feature, ServiceBarTargetUrl, ServiceIcon, TeamDashboard, Slider, Loader & WorkspaceSwitchningIndicator into ts (#782)
Diffstat (limited to 'src/features/todos/actions.ts')
-rw-r--r-- | src/features/todos/actions.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/features/todos/actions.ts b/src/features/todos/actions.ts index b47a076b9..31b14d40b 100644 --- a/src/features/todos/actions.ts +++ b/src/features/todos/actions.ts | |||
@@ -1,17 +1,19 @@ | |||
1 | import { Webview } from 'react-electron-web-view'; | ||
1 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
2 | import { ReactElement } from 'react'; | ||
3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; | 3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; |
4 | 4 | ||
5 | export interface TodoClientMessage { | ||
6 | action: string; | ||
7 | data: object; | ||
8 | } | ||
9 | |||
5 | interface TodoActionsType { | 10 | interface TodoActionsType { |
6 | resize: (width: number) => void; | 11 | resize: (width: number) => void; |
7 | toggleTodosPanel: () => void; | 12 | toggleTodosPanel: () => void; |
8 | toggleTodosFeatureVisibility: () => void; | 13 | toggleTodosFeatureVisibility: () => void; |
9 | setTodosWebview: (webview: ReactElement) => void; | 14 | setTodosWebview: (webview: Webview) => void; |
10 | handleHostMessage: (action: string, data: object) => void; | 15 | handleHostMessage: (action: string, data: object) => void; |
11 | handleClientMessage: ( | 16 | handleClientMessage: (channel: string, message: TodoClientMessage) => void; |
12 | channel: string, | ||
13 | message: { action: string; data: object }, | ||
14 | ) => void; | ||
15 | openDevTools: () => void; | 17 | openDevTools: () => void; |
16 | reload: () => void; | 18 | reload: () => void; |
17 | } | 19 | } |