AIDC Toolkit / Core / TypedAsyncFunction
Type Alias: TypedAsyncFunction()<TMethod>
TypedAsyncFunction<
TMethod> = (...args) =>Promise<PromisedType<ReturnType<TMethod>>>
Defined in: type.ts:87
Typed asynchronous function, applicable to any function that returns a Promise.
Type Parameters
TMethod
TMethod extends (...args) => PromiseLike<PromisedType<ReturnType<TMethod>>>
Parameters
args
...Parameters<TMethod>
Returns
Promise<PromisedType<ReturnType<TMethod>>>