Skip to main content
Module

x/evt/mod.ts>dom.CustomEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CustomEvent
implements Event
import { type dom } from "https://deno.land/x/evt@v2.4.3/mod.ts";
const { CustomEvent } = dom;

Type Parameters

optional
T = any

Properties

readonly
detail: T

Returns any custom data event was created with. Typically used for synthetic events.

Methods

initCustomEvent(
typeArg: string,
canBubbleArg: boolean,
cancelableArg: boolean,
detailArg: T,
): void