CursorPaginator
Sourceimport { CursorPaginator } from "@prestojs/util";
Hierarchy
- Paginator<,>
- CursorPaginator
Constructor
Methods
Returns:void
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | props An object with the properties below | ||
| props.body | null|BodyInit | ||
| props.cache | RequestCache | ||
| props.credentials | RequestCredentials | ||
| props.headers | HeadersInit|Record | ||
| props.integrity | string | ||
| props.keepalive | boolean | ||
| props.method | string | ||
| props.mode | RequestMode | ||
| props.query | Record | ||
| props.redirect | RequestRedirect | ||
| props.referrer | string | ||
| props.referrerPolicy | ReferrerPolicy | ||
| props.signal | null|AbortSignal | ||
| props.urlArgs | Record | ||
| props.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|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
Returns:void
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
Returns:void
Properties
internalState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| nextCursor | string|null | ||
| previousCursor | string|null | ||
| responseIsSet | boolean | ||
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