Waits for a specific event to be emitted from an element.
Ignores events that bubble up from child elements.
Gets type information from the global type HTMLElementEventMap
Optional
Predicate that can be used to terminate the waiting state.
Waits for a specific event to be emitted from an element.
Ignores events that bubble up from child elements.
Gets type information from the global type HTMLElementEventMap