mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-10 15:03:12 +08:00
初始化
This commit is contained in:
12
frontend/src/global.d.ts
vendored
Normal file
12
frontend/src/global.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
ipcRenderer: {
|
||||
send: (channel: string, ...args: any[]) => void;
|
||||
on: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
|
||||
off: (channel: string, listener: (event: any, ...args: any[]) => void) => void;
|
||||
invoke: (channel: string, ...args: any[]) => Promise<any>;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user