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
readonlyhasNext:boolean
Defined in: collection/types.ts:93
hasPrevious
readonlyhasPrevious:boolean
Defined in: collection/types.ts:94
items
readonlyitems: readonlyT[]
Defined in: collection/types.ts:89
page
readonlypage:number
Defined in: collection/types.ts:90
pageSize
readonlypageSize:number
Defined in: collection/types.ts:91
total
readonlytotal:number
Defined in: collection/types.ts:92