interface PaginatedSingleResponse { previous: (() => Promise>) | null; next: (() => Promise>) | null; items: T; partial: boolean; total?: number; } type PaginatedResponse = PaginatedSingleResponse>; export type { PaginatedSingleResponse, PaginatedResponse, };