Skip to main content

Interface: ListResult\<T\>

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / ListResult

Interface: ListResult<T>

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:370

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​

T​

T

The type of items in the list

Properties​

items​

items: T[]

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:372

Array of items


pageInfo​

pageInfo: PageInfo

Defined in: packages/launchpad-sdk/dist/types/common.d.ts:374

Pagination info (cursor-based)