WGShare.Client.Electron/src/render.d.ts

13 lines
403 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;
joinNotification: (data: { name: string, body: string }) => void
}
declare global {
interface Window {
electron: IElectronAPI;
}
}