Implement notifications for Electron

This commit is contained in:
2025-09-21 15:23:27 +03:00
Unverified
parent fcb567a198
commit 137d02567b
7 changed files with 368 additions and 183 deletions
+12 -1
View File
@@ -1,8 +1,19 @@
export type Platform = "win32" | "darwin" | "linux"
export interface ElectronNotifications {
requestPermission: () => Promise<NotificationPermission>;
show: (options: {
title: string;
body: string;
icon?: string;
tag?: string;
}) => Promise<boolean>;
}
export interface ElectronInterface {
desktop: true,
platform: Platform
platform: Platform,
notifications: ElectronNotifications
}
declare global {