Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 754 Bytes

faastjs.asyncdetail.md

File metadata and controls

19 lines (14 loc) · 754 Bytes
id title hide_title
faastjs.asyncdetail
AsyncDetail type
true

faastjs > AsyncDetail

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