mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 20:36:27 +00:00
21 lines
524 B
TypeScript
21 lines
524 B
TypeScript
export type ApiRequestOptions = {
|
|
readonly method:
|
|
| "GET"
|
|
| "PUT"
|
|
| "POST"
|
|
| "DELETE"
|
|
| "OPTIONS"
|
|
| "HEAD"
|
|
| "PATCH"
|
|
readonly url: string
|
|
readonly path?: Record<string, unknown>
|
|
readonly cookies?: Record<string, unknown>
|
|
readonly headers?: Record<string, unknown>
|
|
readonly query?: Record<string, unknown>
|
|
readonly formData?: Record<string, unknown>
|
|
readonly body?: any
|
|
readonly mediaType?: string
|
|
readonly responseHeader?: string
|
|
readonly errors?: Record<number, string>
|
|
}
|