Skip to content

Commit

Permalink
Predicate should accept variadic args
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Sep 18, 2023
1 parent 87e281f commit 9ab2210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/Promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ interface PromiseConstructor {
* end)
* ```
*/
fromEvent<T>(this: void, event: RBXScriptSignal<(value: T) => void>, predicate?: (value: T) => boolean): Promise<T>;
fromEvent<T extends Array<unknown>>(this: void, event: RBXScriptSignal<(...args: T) => void>, predicate?: (...args: T) => boolean): Promise<T>;
fromEvent(this: void, event: RBXScriptSignal<() => void>, predicate?: () => boolean): Promise<void>;
fromEvent<T>(
this: void,
Expand Down

0 comments on commit 9ab2210

Please sign in to comment.