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 2 months ago · comments
type Subsequence<Arr extends any[], SubArr extends any[] = []> = Arr extends [infer Fisrt, ... infer Rest extends any[]] ? SubArr | Subsequence<Rest, [...SubArr] > | Subsequence<Rest, [...SubArr, Fisrt] > : SubArr