From ede4c542524404fb82a08ce10b2c1a4775091b4d Mon Sep 17 00:00:00 2001 From: Harvmaster Date: Fri, 7 Aug 2026 02:11:55 +0000 Subject: [PATCH] Improve waitFor docs --- source/event-emitter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/event-emitter.ts b/source/event-emitter.ts index 8544fca..3ed7a75 100644 --- a/source/event-emitter.ts +++ b/source/event-emitter.ts @@ -168,9 +168,9 @@ export class EventEmitter { } /** - * 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 predicate - The predicate function. + * @param predicate - Predicate function to filter for whether the event payload matches the criteria. * @param timeoutMs - The timeout in milliseconds. * @returns The event payload. */