Paginator
Sourceimport { Paginator } from "@prestojs/util";
Paginator<State,InternalState>
Hierarchy
Constructor
Methods
Returns:void
Returns:State
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | options An object with the properties below | ||
| options.body | null|BodyInit | ||
| options.cache | RequestCache | ||
| options.credentials | RequestCredentials | ||
| options.headers | HeadersInit|Record | ||
| options.integrity | string | ||
| options.keepalive | boolean | ||
| options.method | string | ||
| options.mode | RequestMode | ||
| options.query | Record | ||
| options.redirect | RequestRedirect | ||
| options.referrer | string | ||
| options.referrerPolicy | ReferrerPolicy | ||
| options.signal | null|AbortSignal | ||
| options.urlArgs | Record | ||
| options.window | null | ||
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| body | null|BodyInit | ||
| cache | RequestCache | ||
| credentials | RequestCredentials | ||
| headers | HeadersInit|Record | ||
| integrity | string | ||
| keepalive | boolean | ||
| method | string | ||
| mode | RequestMode | ||
| query | Record | ||
| redirect | RequestRedirect | ||
| referrer | string | ||
| referrerPolicy | ReferrerPolicy | ||
| signal | null|AbortSignal | ||
| urlArgs | Record | ||
| window | null | ||
Returns:boolean
Returns:boolean
Returns:void
Returns:null|State
Returns:void
Returns:null|State
Returns:void
Properties
internalState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| responseIsSet | boolean | ||
| ... | any | Any properties from InternalState | |
Static Methods
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | requestDetails An object with the properties below | ||
| requestDetails.decodedBody | any | ||
| requestDetails.query | Record | ||
| requestDetails.response | Response | ||
| * | requestDetails.url | string | |
| requestDetails.urlArgs | Record | ||
Returns:false|Record