From 86f9ab693dcad951271f727046214b03d91ebd69 Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Sun, 20 Nov 2022 17:35:21 +0530 Subject: Transform Todo feature, ServiceBarTargetUrl, ServiceIcon, TeamDashboard, Slider, Loader & WorkspaceSwitchningIndicator into ts (#782) --- src/features/todos/actions.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/features/todos/actions.ts') 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 @@ +import { Webview } from 'react-electron-web-view'; import PropTypes from 'prop-types'; -import { ReactElement } from 'react'; import { createActionsFromDefinitions } from '../../actions/lib/actions'; +export interface TodoClientMessage { + action: string; + data: object; +} + interface TodoActionsType { resize: (width: number) => void; toggleTodosPanel: () => void; toggleTodosFeatureVisibility: () => void; - setTodosWebview: (webview: ReactElement) => void; + setTodosWebview: (webview: Webview) => void; handleHostMessage: (action: string, data: object) => void; - handleClientMessage: ( - channel: string, - message: { action: string; data: object }, - ) => void; + handleClientMessage: (channel: string, message: TodoClientMessage) => void; openDevTools: () => void; reload: () => void; } -- cgit v1.2.3-70-g09d2