Interface PaginatedResponse<ItemType>

A standard response from a paginated endpoint

interface PaginatedResponse {
    count: number;
    nextToken: null | string;
    previousToken: null | string;
    total: number;
    value: ItemType[];
}

Type Parameters

  • ItemType

Properties

count: number

The amount of items on this page

nextToken: null | string

Token to fetch the next page of results

previousToken: null | string

Token to fetch the next page of results

total: number

The total number of items in the DB

value: ItemType[]

The current page of items

Generated using TypeDoc