mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
26 lines
776 B
TypeScript
26 lines
776 B
TypeScript
import { webUtils } from "electron";
|
|
|
|
declare global {
|
|
interface Window {
|
|
electron: {
|
|
platform: "win32" | "linux",
|
|
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: "/"|"\\";
|
|
basename: (path: string) => string;
|
|
join: (...args: string[]) => string;
|
|
};
|
|
webUtils: {
|
|
getPathForFile: typeof webUtils.getPathForFile;
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
export {};
|