From 2efffd9920faaba1327392a5d11df0fa0a59e18b Mon Sep 17 00:00:00 2001 From: huchenlei Date: Wed, 27 Nov 2024 16:05:32 -0500 Subject: [PATCH] Fix inconsistent types on electronAPI.Terminal.restore --- src/preload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preload.ts b/src/preload.ts index da1556a8..640f47a3 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -160,7 +160,7 @@ const electronAPI = { * Gets the data required to restore the terminal * @param data The command to execute */ - restore: (): Promise<{ buffer: string[]; pos: { x: number; y: number } }> => { + restore: (): Promise<{ buffer: string[]; size: { cols: number; rows: number } }> => { return ipcRenderer.invoke(IPC_CHANNELS.TERMINAL_RESTORE); }, /**