$<T, $O>: $IsExact<$O, { $else: $IsDistributive<$O, { $else: [T] extends readonly [any[]] ? $ResolveBranch<T, $O, [$Then]> : $ResolveBranch<T, $O, [$Else]>; $then: T extends readonly any[] ? $ResolveBranch<T, $O, [$Then]> : $ResolveBranch<T, $O, [$Else]>; }>; $then: $IsDistributive<$O, { $else: [T] extends [readonly any[]] ? number extends T["length"] ? $ResolveBranch<T, $O, [$Then]> : $ResolveBranch<T, $O, [$Else]> : $ResolveBranch<T, $O, [$Else]>; $then: T extends readonly any[] ? number extends T["length"] ? $ResolveBranch<T, $O, [$Then]> : $ResolveBranch<T, $O, [$Else]> : $ResolveBranch<T, $O, [$Else]>; }>; }>
🧰 type util
Validate if
T
is an array.This is a type util for building custom types. It does not check against special types.