diff --git a/types/Promise.d.ts b/types/Promise.d.ts index 7789335..2d4874f 100644 --- a/types/Promise.d.ts +++ b/types/Promise.d.ts @@ -570,12 +570,12 @@ interface PromiseConstructor { * end) * ``` */ - fromEvent(this: void, event: RBXScriptSignal<(value: T) => void>, predicate?: (value: T) => boolean): Promise; + fromEvent>(this: void, event: RBXScriptSignal<(...values: T) => void>, predicate?: (...values: T) => boolean): Promise; fromEvent(this: void, event: RBXScriptSignal<() => void>, predicate?: () => boolean): Promise; - fromEvent( + fromEvent>( this: void, - event: { Connect: (callback: (value: T) => void) => void }, - predicate?: (value: T) => boolean, + event: { Connect: (callback: (...values: T) => void) => void }, + predicate?: (...values: T) => boolean, ): Promise; /** Checks whether the given object is a Promise via duck typing. This only checks if the object is a table and has an `andThen` method. */