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?
optionalbody?:RawBody
The raw body of the request, when provided
bodySchema?
optionalbodySchema?:GenericSchema
Schema used to validate the request body, when provided
form?
optionalform?: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?
optionaljson?:unknown
The JSON body of the request, when provided
method
method:
HttpMethod
HTTP method for the request
params?
optionalparams?:Record<string,string|number>
Path parameter values interpolated into the URL
paramsSchema?
optionalparamsSchema?:GenericSchema
Schema used to validate path params, when provided
responseSchema?
optionalresponseSchema?:GenericSchema
Schema used to validate the response body, when provided
responseType?
optionalresponseType?:ResponseType
Requested response format (per-call only; undefined means 'json')
searchSchema?
optionalsearchSchema?: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