20 lines
626 B
TypeScript
20 lines
626 B
TypeScript
// electron-env.d.ts
|
|
export interface IElectronAPI {
|
|
setMainWindowSize: (config: any) => void;
|
|
setViewStatus: (status: 'quit' | 'maximize' | 'minimize' | 'unmaximize') => void;
|
|
getIsMaximized: () => Promise<boolean>;
|
|
setWriteText: (text: string) => void;
|
|
onQuit: (callBack: Function) => void;
|
|
onUpdate: (callBack: Function) => void;
|
|
joinNotification: (data: { name: string, body: string }) => void;
|
|
onDownload: (data: string) => void
|
|
selectFilePath: () => void
|
|
onFilePath: (callBack: Function) => void;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: IElectronAPI;
|
|
}
|
|
}
|