Skip to content

compose

compose(…ops): (…args) => Promise<object>

Defined in: utils/compose-with.js:234

Composes middleware with path-based result storage and two-accumulator support.

The composed function pops the domain accumulator (last arg with isAccumulator) and response accumulator (last arg with isResponseAcc) from its arguments. If either is absent, a fresh one is created.

…(Function | { fn: Function; setPath: string; })[]

Operation specs; each is a function or {fn, setPath} config object

(…args) => Promise<object>