paginationMiddleware

Source
import { paginationMiddleware } from "@prestojs/rest";
paginationMiddleware<T>(?paginatorClass,?options)
Source

Arguments:

ArgumentTypeDescription
paginatorClass
options
An object with the properties below
options.getPaginationStateGetPaginationState
options.resultPathstring
Returns: