---
url: https://haihv.github.io/valifetch/api/index/type-aliases/InferResponseType.md
---

# Type Alias: InferResponseType\<TSchema>

> **InferResponseType**<`TSchema`> = `TSchema` *extends* `GenericSchema` ? `InferOutput`<`TSchema`> : `unknown`

Defined in: [src/types/options.ts:379](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/options.ts#L379)

Infer response type from schema or fallback to unknown

## Type Parameters

### TSchema

`TSchema`
