Type Alias $<T, $O>

$: $IsDistributive<
    $O,
    {
        $else: [T] extends [readonly any[]]
            ? number extends T["length"]
                ? $ResolveBranch<T, $O, [$Else]>
                : $ResolveBranch<T, $O, [$Then]>
            : $ResolveBranch<T, $O, [$Else]>;
        $then: T extends readonly any[]
            ? number extends T["length"]
                ? $ResolveBranch<T, $O, [$Else]>
                : $ResolveBranch<T, $O, [$Then]>
            : $ResolveBranch<T, $O, [$Else]>;
    },
>

🧰 type util

Validate if T is tuple.

This is a type util for building custom types. It does not check against special types.

Type Parameters