# Type error on documentation example about Custom useFetch in Nuxt
Wrong types instead of union when fetching API routes having dynamic and static handler
typesbugnitro馃敤 p3-minor
[types] $fetch.onResponse(ctx)
discussiontypesworkaround availabledx
Server Routes defineEventHandler TypeScript typing error on complex return types
3.xupstreamupstream-bug
Typescript does not correctly recognize the return type of $fetch and useFetch
pending triagenitroupstream
Add example on how to correctly type custom useFetch errors
documentationgood first issue
`useRequestEvent` return type should be `H3Event | undefined`
good first issuetypes3.xbug馃敤 p3-minor