# ExtractHandlerResponse

**Kind:** Type

**Source:** [`src/types.ts`](https://github.com/honojs/hono/blob/main/src/types.ts#L2750)

## Definition

```ts
T extends (c: any, next: any) => Promise<infer R> ? Exclude<R, void> extends never ? never : Exclude<R, void> extends Response | TypedResponse<any, any, any> ? Exclude<R, void> : never : T extends (c: any, next: any) => infer R ? R extends Response | TypedResponse<any, any, any> ? R : never : never
```
