This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Renderer. | |
/** | |
* Describes the function used to call `invoke` on ipcRenderer. | |
*/ | |
type InvokeFn = (channel: string, ...args: any[]) => Promise<any>; | |
/** | |
* The `invoke` function returned by the `exposeInMainWorld` of the preload script | |
* or by `ipcRenderer` itself. |