PaginationConfig
Untyped form of the pagination, used where the request type is not known
Import
import { PaginationConfig } from "@hyper-fetch/core"
Source
Package
Preview
type PaginationConfig = {
cursor?: string;
hasNext?: (context: any) => boolean;
hasPrevious?: (context: any) => boolean;
in?: PaginationSource;
items?: string | (context: any) => readonly unknown[];
limit?: string;
next?: string | (context: any) => unknown;
offset?: string;
page?: string;
previous?: string | (context: any) => unknown;
total?: string | (context: any) => number | null | undefined;
}
Structure
PaginationConfig
| Name | Type | Description |
|---|---|---|
| cursor | | |
| in | | |
| items | | |
| limit | | |
| next | | |
| offset | | |
| page | | |
| previous | | |
| total | | |
| hasNext | | |
| hasPrevious | |

