Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.PermissionStatus

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.PermissionStatus
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { PermissionStatus } = dom;

Properties

onchange: ((this: PermissionStatus, ev: Event) => any) | null
readonly
state: PermissionState

Methods

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