Перейти к основному содержимому

Function: CursorPageSchema()

CursorPageSchema<T>(item): TObject<{ hasMore: TBoolean; items: TArray<T>; nextCursor: TUnion<[TString, TNull]>; }>

Defined in: packages/contracts/src/common.ts:30

Build a cursor-page response schema for a given item schema.

Type Parameters

T

T extends TObject<TProperties>

Parameters

item

T

Returns

TObject<{ hasMore: TBoolean; items: TArray<T>; nextCursor: TUnion<[TString, TNull]>; }>