aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/actions.ts
diff options
context:
space:
mode:
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}