Skip to content

Commit

Permalink
Fix inconsistent types on electronAPI.Terminal.restore (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Nov 27, 2024
1 parent ac91964 commit 407fb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
/**
Expand Down

0 comments on commit 407fb91

Please sign in to comment.