Skip to main content
zerotal

Documentation


Documentation / @zerotal/client / index / ResponseOf

Type Alias: ResponseOf<Routes, Method, Path>

ResponseOf<Routes, Method, Path> = `${Method} ${Path}` extends keyof Routes ? Routes[`${Method} ${Path}`] extends object ? R : unknown : unknown

Defined in: 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