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

***

[Documentation](../../../README) / [zerotal](../../README) / [client](../README) / PathParams

# Type Alias: PathParams\<Path\>

> **PathParams**\<`Path`\> = `Path` *extends* `` `${string}{${infer Param}}${infer Tail}` `` ? `Param` \| `PathParams`\<`Tail`\> : `never`

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

Extract the names of all `{param}` placeholders from a URL path string.

## Type Parameters

### Path

`Path` *extends* `string`

## Example

```ts
PathParams<'/api/users/{id}/posts/{postId}'>
// → 'id' | 'postId'
```
