Variable Notification
Notification: {
permission: NotificationPermission;
prototype: Notification;
requestPermission(
deprecatedCallback?: NotificationPermissionCallback,
): Promise<NotificationPermission>;
new (title: string, options?: NotificationOptions): Notification;
}
permission: NotificationPermission;
prototype: Notification;
requestPermission(
deprecatedCallback?: NotificationPermissionCallback,
): Promise<NotificationPermission>;
new (title: string, options?: NotificationOptions): Notification;
}
Type declaration
- new (title: string, options?: NotificationOptions): Notification
Parameters
- title: string
Optional
options: NotificationOptions
Returns Notification
Readonly
permission: NotificationPermissionprototype: Notification
requestPermission:function
- requestPermission(
deprecatedCallback?: NotificationPermissionCallback,
): Promise<NotificationPermission> Parameters
Optional
deprecatedCallback: NotificationPermissionCallback
Returns Promise<NotificationPermission>
- requestPermission(
MDN Reference