InferredPaginator
Sourceimport { InferredPaginator } from "@prestojs/util";
InferredPaginator<InferredPaginatorT = CursorPaginator|PageNumberPaginator|LimitOffsetPaginator>
Constructor
Methods
Returns:void
Returns:null|
|
|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
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 | |
| limit | number|string | ||
| offset | number|string | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Returns:void
Returns:null|
|
|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
Returns:null|
|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
Returns:null|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
Returns:void
Returns:null|
|
|
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| cursor | string | ||
| pageSize | number | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| limit | number|string | ||
| offset | number|string | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| page | string|number | ||
| pageSize | string|number | ||
Returns:void
Properties
__paginator
SourcecurrentState
SourceinternalState
Source| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| paginatorClass | any | ||
| responseIsSet | boolean | ||
| ... | any | Any properties from Object | |
responseIsSet
SourceStatic 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