Sonolus Wiki

ItemList

ItemList provides information of a paginated list of items, and is used by Sonolus app to populate item list view.

Syntax

type ItemList<T> = {
    pageCount: number
    items: T[]
    searches?: ServerOptionsSection[]
}

pageCount

If -1 is used, the list is treated as having infinite pagination

Examples

{
    "pageCount": 5,
    "items": [
        // ...
    ],
    "searches": [
        // ...
    ]
}

Remarks

It is recommended to keep each page short by showing only 20 entries.