Skip to main content
Module

x/evt/lib/types/lib.dom.ts>CustomEvent

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

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