CSAPP/src/types/electron.d.ts

10 lines
249 B
TypeScript
Raw Normal View History

2025-04-29 18:36:29 +08:00
export interface ElectronAPI {
setCookie: (cookieString: string) => Promise<void>;
2025-04-30 17:28:03 +08:00
checkUrl: (url: string) => Promise<{ ok: boolean; status: number; error?: string }>;
2025-04-29 18:36:29 +08:00
}
declare global {
interface Window {
electronAPI: ElectronAPI;
}
}