Documentation / zerotal / client / ResponseOf
Type Alias: ResponseOf<Routes, Method, Path>
ResponseOf<
Routes,Method,Path> =`${Method} ${Path}`extends keyofRoutes?Routes[`${Method} ${Path}`] extendsobject?R:unknown:unknown
Defined in: packages/client/src/types.ts:82
Get the response type for a specific method + path combination.
Type Parameters
Routes
Routes extends ApiRouteMap
Method
Method extends HttpMethod
Path
Path extends string