Type Alias $<T, $O>

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

🧰 type util

Validate if T is bigint or bigint literals.

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

Type Parameters