Strongly-typed subset of the DOM EventTarget API using CustomEvent<detail>.
EventTarget
CustomEvent<detail>
This abstraction ensures that event listeners always receive a typed CustomEvent with a strongly-typed detail payload.
CustomEvent
detail
Event map where keys are event names and values are payload types.
Optional
Strongly-typed subset of the DOM
EventTargetAPI usingCustomEvent<detail>.This abstraction ensures that event listeners always receive a typed
CustomEventwith a strongly-typeddetailpayload.