deno / 1.23.2 / ~ / customevent.html /

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–2022 the Deno authors
https://doc.deno.land/deno/stable/~/CustomEvent