UNPKG

@shoelace-style/shoelace

Version:

A forward-thinking library of web components.

3 lines (2 loc) 205 B
/** Waits for a specific event to be emitted from an element. Ignores events that bubble up from child elements. */ export declare function waitForEvent(el: HTMLElement, eventName: string): Promise<void>;