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

x/evt/lib/types/index.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.18/lib/types/index.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