mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
28 lines
751 B
TypeScript
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];
|
|
}
|