Interface PaginatedBackendResponse<ItemType>

Actual simulated response from the backend for a paginated request

interface PaginatedBackendResponse {
    @nextLink: string;
    @previousLink: string;
    count: number;
    total: number;
    value: ItemType[];
}

Type Parameters

  • ItemType

Properties

@nextLink: string

Token to fetch the next page of results

@previousLink: string

Token to fetch the next page of results

count: number

The amount of items on this page

total: number

The total number of items in the DB

value: ItemType[]

The current page of items

Generated using TypeDoc