Skip to main content

Interface: CursorPaginatedResult<T, TCursor>

Defined in: collection/types.ts:112

Result of a cursor-based pagination operation.

Example

const page: CursorPaginatedResult<User, string> = {
items: users,
nextCursor: 'user_456',
hasMore: true
}

Type Parameters

T

T

The type of items in the page

TCursor

TCursor

The type of the cursor

Properties

hasMore

readonly hasMore: boolean

Defined in: collection/types.ts:115


items

readonly items: readonly T[]

Defined in: collection/types.ts:113


nextCursor?

readonly optional nextCursor: TCursor

Defined in: collection/types.ts:114