Improve waitFor docs
This commit is contained in:
@@ -168,9 +168,9 @@ export class EventEmitter<T extends EventMap> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait for an event to be emitted.
|
* Wait for an event to be emitted that matches the provided predicate function's criteria.
|
||||||
* @param type - The event type.
|
* @param type - The event type.
|
||||||
* @param predicate - The predicate function.
|
* @param predicate - Predicate function to filter for whether the event payload matches the criteria.
|
||||||
* @param timeoutMs - The timeout in milliseconds.
|
* @param timeoutMs - The timeout in milliseconds.
|
||||||
* @returns The event payload.
|
* @returns The event payload.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user