export interface ResWithPagination<T> {
  data: {
    links: Links;
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: T[];
  };
}

export interface ResWithPaginationOneItem<T> {
  data: T;
}

interface Links {
  next: number | null;
  previous: number | null;
}

export interface ReqWithPagination {
  _start?: number;
  _limit?: number;
  page?: number;
  category?: number | undefined;
  popular?: boolean;
  search?: string;
}
