Files
5chan/src/globals.d.ts
T

20 lines
477 B
TypeScript
Raw Normal View History

2024-02-27 17:58:08 +01:00
declare global {
interface Window {
isElectron: boolean;
}
}
2025-05-22 17:42:04 +02:00
declare global {
interface Window {
electronApi?: {
isElectron: boolean;
invoke: (channel: string, ...args: any[]) => Promise<any>;
getNotificationStatus: () => Promise<'granted' | 'denied' | 'not-determined' | 'not-supported'>;
getPlatform: () => Promise<NodeJS.Platform>;
testNotification: () => Promise<{ success: boolean; reason?: string }>;
};
}
}
2024-02-27 17:58:08 +01:00
export {};