CursorPaginator
Sourceimport { CursorPaginator } from "@prestojs/util";
Hierarchy
- Paginator<
,An object with these properties: Property Type Description cursor string pageSize number
>An object with these properties: Property Type Description nextCursor string|null previousCursor string|null - CursorPaginator
Constructor
Params:
Parameter | Type | Description | |
---|---|---|---|
currentStatePair | null | ||
internalStatePair | null |
Methods
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
cursor | string | ||
pageSize | number |
Params:
Parameter | Type | Description | |
---|---|---|---|
* | props An object with the properties below | ||
props.headers | HeadersInit|Record | ||
props.query | Record | ||
props.urlArgs | Record | ||
... | any | Any properties from RequestInit |
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
headers | HeadersInit|Record | ||
query | Record | ||
urlArgs | Record | ||
... | any | Any properties from RequestInit |
Returns:null|
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
cursor | string | ||
pageSize | number |
Params:
Parameter | Type | Description | |
---|---|---|---|
* | pageSize | null|number |
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
cursor | string | ||
pageSize | number |
Returns:null|
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
cursor | string | ||
pageSize | number |
Params:
Parameter | Type | Description | |
---|---|---|---|
* | currentStatePair | any | |
* | internalStatePair | any |
Returns:void
Properties
currentState
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
cursor | string | ||
pageSize | number |
internalState
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
nextCursor | string|null | ||
previousCursor | string|null | ||
responseIsSet | boolean |