batchMiddleware

Source
import { batchMiddleware } from "@prestojs/rest";
batchMiddleware<BatchCallReturn,IndividualResult>(options)
Source

Arguments:

ArgumentTypeDescription
*
options
An object with the properties below
options.batchDelaynumber
options.decodeBody
*options.execute
options.getBatchKey
options.reject
*options.resolve
Returns:Middleware function