Collection of TypeScript type challenges with online judge
Home Page:https://tsch.js.org/
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
Flavour86 opened this issue a month ago · comments
type Last<T extends any[]> = T extends [infer F, ...infer Rest] ? Rest[number] extends never ? F : Last<Rest> : never