Fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-06-17 21:14:25 +02:00
parent dc46d03aab
commit 0d3e09354e

View File

@@ -10,10 +10,8 @@ export type StaticType<T extends abstract new (...args: any) => any> = Omit<T, "
export type Merge<Super, Self> = Omit<Super, CommonKeys<Self, Super>> & Self export type Merge<Super, Self> = Omit<Super, CommonKeys<Self, Super>> & Self
export type Includes<T extends readonly any[], U> = ( export type Includes<T extends readonly any[], U> = T extends [infer Head, ...infer Tail]
T extends [infer Head, ...infer Tail] ? (<X>() => X extends Head ? 1 : 2) extends (<X>() => X extends U ? 1 : 2)
? (<X>() => X extends Head ? 1 : 2) extends (<X>() => X extends U ? 1 : 2) ? true
? true : Includes<Tail, U>
: Includes<Tail, U> : false
: false
)