This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/lib/detached-promise.d.ts
2025-01-11 09:54:09 +03:00

13 lines
387 B
TypeScript

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