PreparedAction

Source
import { PreparedAction } from "@prestojs/rest";

API

new PreparedAction(action,urlResolveOptions,options)

Source
ParameterTypeDescription
*actionEndpoint
*urlResolveOptionsUrlResolveOptions
*optionsExecuteInitOptions

Methods

ParameterTypeDescription
*initExecuteInitOptions
Promise<any>

Properties

KeyTypeDescription
headersHeadersInit|Record

Any headers to add to the request. You can unset default headers that might be specified in the default Endpoint.defaultConfig.requestInit by setting the value to undefined.

paginatorPaginatorInterface|null

The paginator instance to use. This can be provided in the constructor to use by default for all executions of this endpoint or provided for each call to the endpoint.

Only applicable if paginationMiddleware has been added to the Endpoint.

queryQuery
urlArgsRecord