Interface ApiResponse<T>

Typical API list response from DRF API when it has pagination.

interface ApiResponse<T> {
    count: number;
    next: null | string;
    previous: null | string;
    results: T[];
}

Type Parameters

  • T

Properties

count: number
next: null | string
previous: null | string
results: T[]