Download src/types/api.ts from Jessedbrown/daisy-client: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/Jessedbrown/daisy-client/resolve/main/src/types/api.ts
- Command line
-
hf download hf://Jessedbrown/daisy-client/src/types/api.ts
-
curl -L -o api.ts https://huggingface.co/Jessedbrown/daisy-client/resolve/main/src/types/api.ts
439 Bytes
| export interface PaginationInfo { | |
| page: number; | |
| limit: number; | |
| total: number; | |
| totalPages: number; | |
| hasNext: boolean; | |
| hasPrev: boolean; | |
| } | |
| export interface ApiResponse<T> { | |
| data: T; | |
| pagination?: PaginationInfo; | |
| meta?: Record<string, unknown>; | |
| } | |
| export interface BackendApiResponse<T> { | |
| data: T; | |
| status: number; | |
| message?: string; | |
| } | |
| export interface ApiError { | |
| message: string; | |
| status: number; | |
| code?: string; | |
| } | |