dingxyang opened this issue 2 years ago · 0 comments
type Includes<T extends readonly any[], U> = T extends [infer A, ...infer Rest] ? (Equal<A, U> extends true ? true : Includes<Rest, U>) : false