Documentation / @zerotal/client / index / PathsFor
Type Alias: PathsFor<Routes, Method>
PathsFor<
Routes,Method> ={ [K in keyof Routes & string]: K extends `${Method} ${infer Path}` ? Path : never }[keyofRoutes&string]
Defined in: client/src/types.ts:77
Extract all paths registered for a given HTTP method from a route map.
Type Parameters
Routes
Routes extends ApiRouteMap
Method
Method extends HttpMethod