7 lines
194 B
TypeScript
7 lines
194 B
TypeScript
declare function createControlledPromise<T = unknown>(): {
|
|
promise: Promise<T>;
|
|
resolve: (value: T) => void;
|
|
reject: (error: unknown) => void;
|
|
};
|
|
export { createControlledPromise };
|