Collection of TypeScript type challenges with online judge
Home Page:https://tsch.js.org/
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
sunupupup opened this issue a month ago · comments
maybe tricky ...
type ParseUrlParams<T, Ret extends string[] = []> = `${T & string}/` extends `${any}:${infer Param}/${infer Rest}` ? ParseUrlParams<Rest, [...Ret, Param]> : Ret[number];