ItemList
ItemList
provides information of a paginated list of items, and is used by Sonolus app to populate item list view.
Syntax
type type ItemList<T> = {
pageCount: number
items: T[]
search: Search
}
pageCount
If -1
is used, the list is treated as having infinite pagination
Examples
{
"pageCount": 5,
"items": [
// ...
],
"search": {
//...
}
}
Remarks
It is recommended to keep each page short by showing only 20 entries.