LimitOffsetPaginator
Sourceimport { LimitOffsetPaginator } from "@prestojs/util";
Hierarchy
- Paginator<
,An object with these properties: Property Type Description limit number|string offset number|string
>An object with these properties: Property Type Description total number|null - LimitOffsetPaginator
Constructor
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| currentStatePair | null | ||
| internalStatePair | null |
Methods
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | props | Object |
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 | |
| limit | number|string | ||
| offset | number|string | ||
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | limit | null|number |
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | offset | null|number |
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Params:
| Parameter | Type | Description | |
|---|---|---|---|
| * | currentStatePair | any | |
| * | internalStatePair | any |
Returns:void
Properties
currentState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
internalState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| responseIsSet | boolean | ||
| total | number|null | ||