Paginator
Sourceimport { Paginator } from "@prestojs/util";
Paginator<State,InternalState>
Hierarchy
Constructor
Params:
Parameter | Type | Description | |
---|---|---|---|
currentStatePair | null | ||
internalStatePair | null |
Methods
Params:
Parameter | Type | Description | |
---|---|---|---|
* | options An object with the properties below | ||
options.headers | HeadersInit|Record | ||
options.query | Record | ||
options.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 |
Params:
Parameter | Type | Description | |
---|---|---|---|
* | currentStatePair | any | |
* | internalStatePair | any |
Returns:void
Properties
currentState
SourceinternalState
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
responseIsSet | boolean | ||
... | any | Any properties from InternalState |