index/interfaces/ListResult.md
Generic list result type with pagination metadata
A reusable pattern for any paginated list response containing items and metadata. Reduces duplication across 95+ Result interfaces with similar structure. Uses cursor-based pagination (PageInfo).
Example
// Define a specialized result type by extending ListResult
type BanListResult = ListResult<BanData>;
type TradeListResult = ListResult<TradeInfo>;
Since
6.6.0
Updated
8.0.0 - Migrated to cursor-based pagination with PageInfo
Type Parameters
| Type Parameter | Description |
|---|---|
T | The type of items in the list |
Properties
| Property | Type | Description |
|---|---|---|
items | T[] | Array of items |
pageInfo | PageInfo | Pagination info (cursor-based) |
page info