@webroute/routeType aliases
InferParamsFromPath
InferParamsFromPath<
T
>:T
extends `${string}:${infer P}/${infer R}` ?Simplify
<{ [K in P]: string }
&InferParamsFromPath
<R
>> :T
extends `${string}:${infer P}` ?{ [K in P]: string }
:never
Type Parameters
Type Parameter |
---|
T |