Files
bs-manager/src/renderer/preload.d.ts
T

25 lines
730 B
TypeScript

declare global {
interface Window {
electron: {
ipcRenderer: {
sendMessage(channel: string, args: any): void;
on(channel: string, func: (...args: any) => void): (() => void) | undefined;
once(channel: string, func: (...args: any) => void): void;
removeAllListeners(channel: string): void;
};
path: {
sep: "/"|"\\";
join: (...args: string[]) => string;
};
window: {
close: () => void;
minimise: () => void;
maximise: () => void;
unmaximise: () => void;
};
};
}
}
export {};