fei.wang
10 天以前 ae7b22322555448d95fd56f505bafa325c167a26
1
2
3
4
5
6
7
8
9
10
11
12
13
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;