aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/actions.ts
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-20 17:35:21 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-20 17:35:21 +0530
commit86f9ab693dcad951271f727046214b03d91ebd69 (patch)
tree3d32ff4814b5484495b811c5fe0ebea4805f4e55 /src/features/todos/actions.ts
parent6.2.1-nightly.47 [skip ci] (diff)
downloadferdium-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.ts14
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 @@
1import { Webview } from 'react-electron-web-view';
1import PropTypes from 'prop-types'; 2import PropTypes from 'prop-types';
2import { ReactElement } from 'react';
3import { createActionsFromDefinitions } from '../../actions/lib/actions'; 3import { createActionsFromDefinitions } from '../../actions/lib/actions';
4 4
5export interface TodoClientMessage {
6 action: string;
7 data: object;
8}
9
5interface TodoActionsType { 10interface 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}