Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CustomEvent

interface CustomEvent <T = any> extends Event {
readonly detail: T;
initCustomEvent(
type: string,
bubbles?: boolean,
cancelable?: boolean,
detail?: T,
): void;
}
var CustomEvent: {
prototype: CustomEvent;
new <T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
}
;

§Type Parameters

§
T = any
[src]

§Extends

§Properties

§
readonly detail: T
[src]

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

§Methods

§
initCustomEvent(
type: string,
bubbles?: boolean,
cancelable?: boolean,
detail?: T,
): void
[src]