Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
12
node_modules/next/dist/lib/detached-promise.d.ts
generated
vendored
Normal file
12
node_modules/next/dist/lib/detached-promise.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* A `Promise.withResolvers` implementation that exposes the `resolve` and
|
||||
* `reject` functions on a `Promise`.
|
||||
*
|
||||
* @see https://tc39.es/proposal-promise-with-resolvers/
|
||||
*/
|
||||
export declare class DetachedPromise<T = any> {
|
||||
readonly resolve: (value: T | PromiseLike<T>) => void;
|
||||
readonly reject: (reason: any) => void;
|
||||
readonly promise: Promise<T>;
|
||||
constructor();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue