CustomEvent
class CustomEvent<T = any> extends Event {}readonly detail: T;
Type Parameters
T = anyExtends
EventConstructors
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