This repository has been archived on 2026-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
todo/client/node_modules/async-function/index.d.ts

13 lines
448 B
TypeScript
Raw Normal View History

2025-06-13 06:04:40 +00:00
declare namespace getAsyncFunction {
type AsyncFunction<T = unknown> = (...args: any[]) => Promise<T>;
interface AsyncFunctionConstructor extends FunctionConstructor {
new <T>(...args: string[]): AsyncFunction<T>;
<T>(...args: string[]): AsyncFunction<T>;
readonly prototype: AsyncFunction;
}
}
declare function getAsyncFunction(): getAsyncFunction.AsyncFunctionConstructor | false;
export = getAsyncFunction;