Skip to content

Type Alias: NormalizedOptions ​

NormalizedOptions = Omit<ValifetchBaseOptions, "signal"> & object

Defined in: src/types/options.ts:287

Fully resolved request options as seen by hooks, after instance and per-request options have been merged and defaults applied.

retry is carried through unnormalized (still RetryOptions | number | false | undefined); the retry loop normalizes it internally.

Type Declaration ​

body? ​

optional body?: RawBody

The raw body of the request, when provided

bodySchema? ​

optional bodySchema?: GenericSchema

Schema used to validate the request body, when provided

form? ​

optional form?: FormData | URLSearchParams | Record<string, string>

The form body of the request, when provided

headers ​

headers: Headers

Resolved headers object, instance headers overridden by request headers

hooks ​

hooks: Hooks

Concatenated instance and request hooks (instance hooks run first)

json? ​

optional json?: unknown

The JSON body of the request, when provided

method ​

method: HttpMethod

HTTP method for the request

params? ​

optional params?: Record<string, string | number>

Path parameter values interpolated into the URL

paramsSchema? ​

optional paramsSchema?: GenericSchema

Schema used to validate path params, when provided

responseSchema? ​

optional responseSchema?: GenericSchema

Schema used to validate the response body, when provided

responseType? ​

optional responseType?: ResponseType

Requested response format (per-call only; undefined means 'json')

searchSchema? ​

optional searchSchema?: GenericSchema

Schema used to validate search params, when provided

signal ​

signal: AbortSignal

The composed abort signal actually passed to fetch — the caller's signal combined with the controller behind .cancel(), not the caller's raw signal.

throwHttpErrors ​

throwHttpErrors: boolean

Resolved flag controlling whether non-2xx statuses throw

validateRequest ​

validateRequest: boolean

Resolved request validation flag

validateResponse ​

validateResponse: boolean

Resolved response validation flag

Released under the MIT License. Built with Claude Code.