Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>Notification

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface Notification
implements EventTarget
import { type Notification } from "https://deno.land/x/windmill@v1.298.0/node_modules/evt/lib/types/lib.dom.d.ts";

This Notifications API interface is used to configure and display desktop notifications to the user.

Properties

readonly
actions: ReadonlyArray<NotificationAction>
readonly
badge: string
readonly
body: string
readonly
data: any
readonly
icon: string
readonly
image: string
readonly
lang: string
onclick: ((this: Notification, ev: Event) => any) | null
onclose: ((this: Notification, ev: Event) => any) | null
onerror: ((this: Notification, ev: Event) => any) | null
onshow: ((this: Notification, ev: Event) => any) | null
readonly
renotify: boolean
readonly
requireInteraction: boolean
readonly
silent: boolean
readonly
tag: string
readonly
timestamp: number
readonly
title: string
readonly
vibrate: ReadonlyArray<number>

Methods

close(): void
addEventListener<K extends keyof NotificationEventMap>(
type: K,
listener: (this: Notification, ev: NotificationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof NotificationEventMap>(
type: K,
listener: (this: Notification, ev: NotificationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void