This wrapper around CustomEvent provides more descriptive type information. By using this class, the type property of the CustomEvent will be typed as a string literal – this allows [TypedEventTarget] to provide more useful type checking of events.
type
Readonly
Returns the type of event, e.g. "click", "hashchange", or "submit".
This wrapper around CustomEvent provides more descriptive type information. By using this class, the
type
property of the CustomEvent will be typed as a string literal – this allows [TypedEventTarget] to provide more useful type checking of events.