2024-11-01 15:19:18 -07:00
|
|
|
interface PaginatedSingleResponse<T> {
|
|
|
|
previous: (() => Promise<PaginatedSingleResponse<T>>) | null;
|
|
|
|
next: (() => Promise<PaginatedSingleResponse<T>>) | null;
|
|
|
|
items: T;
|
2024-08-28 04:43:23 -07:00
|
|
|
partial: boolean;
|
|
|
|
total?: number;
|
|
|
|
}
|
|
|
|
|
2024-11-01 15:19:18 -07:00
|
|
|
type PaginatedResponse<T> = PaginatedSingleResponse<Array<T>>;
|
|
|
|
|
2024-08-28 04:43:23 -07:00
|
|
|
export type {
|
2024-11-01 15:19:18 -07:00
|
|
|
PaginatedSingleResponse,
|
2024-08-28 04:43:23 -07:00
|
|
|
PaginatedResponse,
|
|
|
|
};
|