amis-rpc-design/node_modules/fork-ts-checker-webpack-plugin/lib/utils/async/controlled-promise.d.ts
2023-10-07 19:42:30 +08:00

7 lines
194 B
TypeScript

declare function createControlledPromise<T = unknown>(): {
promise: Promise<T>;
resolve: (value: T) => void;
reject: (error: unknown) => void;
};
export { createControlledPromise };