0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

fix(core/types): Promise.withResolvers: Unmark callback param as optional (#21085)

See discussion on merged commit:
1d19b1011b (r131604700)

Signed-off-by: Jesse Jackson <jsejcksn@users.noreply.github.com>
This commit is contained in:
Jesse Jackson 2023-11-05 16:40:56 -06:00 committed by GitHub
parent 485fade0b6
commit 68a964346d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,5 +50,5 @@ interface PromiseConstructor {
* Creates a Promise that can be resolved or rejected using provided functions.
* @returns An object containing `promise` promise object, `resolve` and `reject` functions.
*/
withResolvers<T>(): { promise: Promise<T>, resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void };
withResolvers<T>(): { promise: Promise<T>, resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void };
}