@mantlebee/ts-data
    Preparing search index...

    Type Alias LookupPage

    Page asked to ILookupSource.search, by offset: a panel knows how many items it shows and how many it already has.

    The sources over a reader (createLookupSource, createInMemoryLookupSource) translate it into the 1-based, page-based Pagination of the payload, so offset must be a multiple of limit: page by the same limit from 0 (0, limit, 2 * limit, ...). Their search rejects with a RangeError, without calling the reader, when limit is not a positive integer or offset is not a non-negative multiple of it. A hand-written ILookupSource may accept any offset.

    await source.search("ro", { limit: 20, offset: 40 }); // the third page
    await source.search("ro", { limit: 20, offset: 30 }); // rejects: RangeError
    type LookupPage = {
        limit: number;
        offset: number;
    }
    Index
    limit: number

    Number of items of the page, a positive integer.

    offset: number

    Index of the first item, a multiple of limit (0 for the first page) for the sources over a reader.