mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-25 21:45:08 +08:00
13 lines
448 B
TypeScript
13 lines
448 B
TypeScript
|
|
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;
|