W3cubDocs

/Deno

CustomEvent

class CustomEvent<T = any> extends Event {
constructor(typeArg: string, eventInitDict?: CustomEventInit<T>);
readonly detail: T;
}

Type Parameters

T = any

Extends

Event

Constructors

new CustomEvent(typeArg: string, eventInitDict?: CustomEventInit<T>)

Properties

detail: T

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

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/CustomEvent