Skip to main content

Interface: PaginatedResult<T>

Defined in: collection/types.ts:88

Result of a pagination operation.

Example

const page: PaginatedResult<User> = {
items: users,
page: 1,
pageSize: 20,
total: 100,
hasNext: true,
hasPrevious: false
}

Type Parameters

T

T

The type of items in the page

Properties

hasNext

readonly hasNext: boolean

Defined in: collection/types.ts:93


hasPrevious

readonly hasPrevious: boolean

Defined in: collection/types.ts:94


items

readonly items: readonly T[]

Defined in: collection/types.ts:89


page

readonly page: number

Defined in: collection/types.ts:90


pageSize

readonly pageSize: number

Defined in: collection/types.ts:91


total

readonly total: number

Defined in: collection/types.ts:92