Make a generic AjaxSelect abstract class

This commit is contained in:
2024-10-20 02:26:32 +02:00
parent f78b968075
commit 0af3505c2a
3 changed files with 63 additions and 35 deletions

View File

@ -1,14 +1,14 @@
import type { Client, Options, RequestResult } from "@hey-api/client-fetch";
import { client } from "#openapi";
interface PaginatedResponse<T> {
export interface PaginatedResponse<T> {
count: number;
next: string | null;
previous: string | null;
results: T[];
}
interface PaginatedRequest {
export interface PaginatedRequest {
query?: {
page?: number;
// biome-ignore lint/style/useNamingConvention: api is in snake_case