mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
declare global {
|
|
interface Window {
|
|
isElectron: boolean;
|
|
}
|
|
}
|
|
|
|
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 }>;
|
|
};
|
|
}
|
|
}
|
|
|
|
export {};
|