[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/client](../../README) / [index](../README) / PathsFor

# Type Alias: PathsFor\<Routes, Method\>

> **PathsFor**\<`Routes`, `Method`\> = `` { [K in keyof Routes & string]: K extends `${Method} ${infer Path}` ? Path : never } ``\[keyof `Routes` & `string`\]

Defined in: [client/src/types.ts:77](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/client/src/types.ts#L77)

Extract all paths registered for a given HTTP method from a route map.

## Type Parameters

### Routes

`Routes` *extends* [`ApiRouteMap`](ApiRouteMap)

### Method

`Method` *extends* [`HttpMethod`](HttpMethod)
