Skip to content

Type Alias: Page<TItem, TListKey>

ts
type Page<TItem, TListKey> = {
  nextPageToken?: string;
} & Record<TListKey, TItem[]>;

Defined in: src/types/common.ts:8

Generic paginated response type for list operations. Combines pagination metadata with the actual list data.

Type Declaration

NameTypeDescriptionDefined in
nextPageToken?stringToken for fetching the next page of results (undefined if no more pages)src/types/common.ts:10

Type Parameters

Type ParameterDescription
TItemType of items in the list
TListKey extends stringProperty name containing the list items