Skip to content

TypeScript API / contentia/json-api / PaginationParameterOptions

Interface: PaginationParameterOptions ​

Properties ​

defaultPageSize ​

ts
defaultPageSize: number;

Page size the handler lists with when the request carries no page[*] parameter at all. Documented verbatim, so it must match what the handler actually does; parsePaginationQuery on its own gives DEFAULT_PAGE_SIZE.


unsizedPageSize? ​

ts
unsizedPageSize?: number;

Page size the handler fills in when page[number], page[after], page[before] or page[offset] arrives without a size of its own. parsePaginationQuery leaves the size unset there, so the backend picks it; set this only for a handler that substitutes its own.