Type Alias PaginatedPage<T>

PaginatedPage:
    | T[]
    | {
        data?: T[]
        | null;
        limit?: number;
        pagination?: { has_next?: boolean; pages?: number } | null;
        total?: number;
    }
    | { items: T[]; pagination?: { page: number; total_pages: number } }

One page as a fetcher handed to Seclai.paginate may return it: a list method's {data, pagination} envelope or flat {data, total, page, limit}, a bare array, or {items, pagination} with a total_pages count.

Type Parameters

  • T