# Type alias PathParam<Path>

PathParam<Path>: Path extends "*" | "/*"
? "*"
: Path extends `${infer Rest}/*`
? "*" | _PathParam<Rest>
: _PathParam<Path>

Examples: "/a/b/" -> "" ":a" -> "a" "/a/:b" -> "b" "/a/blahblahblah:b" -> "b" "/:a/:b" -> "a" | "b" "/:a/b/:c/" -> "a" | "c" | ""

#### Type Parameters

- Path extends string

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:284