← full-stack-fastapi-template / frontend/src/client/core/ApiRequestOptions.ts
| 1 | export type ApiRequestOptions<T = unknown> = { |
| 2 | readonly body?: any; |
| 3 | readonly cookies?: Record<string, unknown>; |
| 4 | readonly errors?: Record<number | string, string>; |
| 5 | readonly formData?: Record<string, unknown> | any[] | Blob | File; |
| 6 | readonly headers?: Record<string, unknown>; |
| 7 | readonly mediaType?: string; |
| 8 | readonly method: |
| 9 | | 'DELETE' |
| 10 | | 'GET' |
| 11 | | 'HEAD' |
| 12 | | 'OPTIONS' |
| 13 | | 'PATCH' |
| 14 | | 'POST' |
| 15 | | 'PUT'; |
| 16 | readonly path?: Record<string, unknown>; |
| 17 | readonly query?: Record<string, unknown>; |
| 18 | readonly responseHeader?: string; |
| 19 | readonly responseTransformer?: (data: unknown) => Promise<T>; |
| 20 | readonly url: string; |
| 21 | }; |