mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05: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:
parent
485fade0b6
commit
68a964346d
1 changed files with 1 additions and 1 deletions
2
cli/tsc/dts/lib.es2021.promise.d.ts
vendored
2
cli/tsc/dts/lib.es2021.promise.d.ts
vendored
|
@ -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 };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue