AsyncDetail type
AsyncDetail<T>
is similar to Async except it maps retun values R to Detail<R>
, which is the return value with additional information about each cloud function invocation.
Signature:
export type AsyncDetail<T> = T extends AsyncGenerator<infer R> ? AsyncGenerator<Detail<R>> : T extends Generator<infer R> ? AsyncGenerator<Detail<R>> : T extends Promise<infer R> ? Promise<Detail<R>> : Promise<Detail<T>>;
References: Detail