Files
lcbp3.np-dms.work/frontend/node_modules/next/dist/lib/detached-promise.d.ts
2025-09-21 20:29:15 +07:00

13 lines
387 B
TypeScript
Executable File

/**
* 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();
}