gerbil/src/types/ipc.d.ts

28 lines
751 B
TypeScript

export type IPCChannel =
| 'download-progress'
| 'install-dir-changed'
| 'versions-updated'
| 'kobold-output'
| 'kobold-crashed'
| 'tunnel-url-changed'
| 'window-maximized'
| 'window-unmaximized'
| 'line-numbers-changed';
export interface KoboldCrashInfo {
exitCode: number | null;
signal: string | null;
errorMessage?: string;
}
export interface IPCChannelPayloads {
'download-progress': [progress: number];
'install-dir-changed': [newPath: string];
'versions-updated': [];
'kobold-output': [message: string];
'kobold-crashed': [crashInfo: KoboldCrashInfo];
'tunnel-url-changed': [url: string | null];
'window-maximized': [];
'window-unmaximized': [];
'line-numbers-changed': [showLineNumbers: boolean];
}