diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-11-01 20:25:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 20:25:09 +0100 |
commit | 1d19b1011bd7df50598f5981408c2d78c35b76d2 (patch) | |
tree | fd08d835b76abb0b95f88fa666580b251ae2aa50 /cli/tsc | |
parent | 01d3e0f317ca180bbf0ac8a17c6651869110e02f (diff) |
chore: upgrade deno_core (#21036)
Updated to deno_core 0.224.0 and V8 12.0.
---------
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.es2021.promise.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.es2021.promise.d.ts b/cli/tsc/dts/lib.es2021.promise.d.ts index 6ef98b638..5212c8d3e 100644 --- a/cli/tsc/dts/lib.es2021.promise.d.ts +++ b/cli/tsc/dts/lib.es2021.promise.d.ts @@ -45,4 +45,10 @@ interface PromiseConstructor { * @returns A new Promise. */ any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>> + + /** + * 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 }; } |