Skip to content

ValidatedFetch

Defined in: wp-typia-rest/src/client.ts:62

WordPress-aware fetch helper that validates response payloads.

Each method keeps the original apiFetch request shape while exposing either soft validation results or throwing assertion flows.

T

assertFetch(options): Promise<T>

Defined in: wp-typia-rest/src/client.ts:63

APIFetchOptions

Promise<T>


fetch(options): Promise<ValidationResult<T>>

Defined in: wp-typia-rest/src/client.ts:64

APIFetchOptions

Promise<ValidationResult<T>>


fetchWithResponse(options): Promise<{ response: Response; validation: ValidationResult<T>; }>

Defined in: wp-typia-rest/src/client.ts:65

APIFetchOptions<false>

Promise<{ response: Response; validation: ValidationResult<T>; }>


isFetch(options): Promise<T | null>

Defined in: wp-typia-rest/src/client.ts:68

APIFetchOptions

Promise<T | null>