Shopee SDK API Reference - v2.14.1
    Preparing search index...

    Interface PaginateOptions<P, R, I>

    interface PaginateOptions<P, R, I> {
        items: (response: R) => readonly I[] | null | undefined;
        max_pages?: number;
        next: NextPage<P, R>;
    }

    Type Parameters

    • P
    • R
    • I
    Index
    items: (response: R) => readonly I[] | null | undefined

    Extracts the items of one page.

    max_pages?: number

    Stop after this many pages, as a safety net. Default: unlimited.

    next: NextPage<P, R>

    Computes the params of the next page; see nextByCursor, nextByOffset, nextByPageNo.