createCustomEvent(eventType: string, options?: CustomEventInit): CustomEvent
Creates a new CustomEvent.
Parameters
eventType: string
A string representing the event type.
options?: CustomEventInit
An options object specifying bubbles:boolean, cancelable:boolean and/or detail:Object information.
Returns
A CustomEvent.