diff options
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 | } |