TypeAlias.PaginatedData
type PaginatedData<T>: {
hasNextPage: boolean;
hasPrevPage: boolean;
nodes: T[];
totalCount: number;
};
An object representing a paginated data API result.
Type Parameters
Type Parameter | Description |
---|---|
T | The data type being paginated |
Type declaration
Name | Type | Description |
---|---|---|
hasNextPage | boolean | A boolean indicating wether the paginated data has a next page or not. |
hasPrevPage | boolean | A boolean indicating wether the paginated data has a previous page or not. |
nodes | T [] | An array of the data. |
totalCount | number | The number of total results. |