---
url: https://haihv.github.io/valifetch/api/index/type-aliases/PathParamsRecord.md
---

# Type Alias: PathParamsRecord\<Path>

> **PathParamsRecord**<`Path`> = [`ExtractPathParams`](ExtractPathParams.md)<`Path`> *extends* `never` ? `Record`<`string`, `never`> : `Record`<[`ExtractPathParams`](ExtractPathParams.md)<`Path`>, `string` | `number`>

Defined in: [src/types/params.ts:18](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/params.ts#L18)

Creates a record type from extracted path params
All params are string | number for flexibility

## Type Parameters

### Path

`Path` *extends* `string`
