Frontend/25_01_07/mai/node_modules/is-async-function/index.d.ts

7 lines
207 B
TypeScript
Raw Normal View History

2025-01-28 10:38:27 +00:00
declare namespace isAsyncFunction {
type AsyncFunction = (...args: any[]) => Promise<any>
}
declare function isAsyncFunction(fn: unknown): fn is isAsyncFunction.AsyncFunction;
export = isAsyncFunction;