Type Alias $<A, B, $O>

$<A, B, $O>: $IsDistributive<$O, {
    $else: [A] extends [B]
        ? $ResolveBranch<A, $O, [$Then]>
        : $ResolveBranch<A, $O, [$Else]>;
    $then: A extends B
        ? $ResolveBranch<A, $O, [$Then]>
        : $ResolveBranch<A, $O, [$Else]>;
}>

🧰 type util

Validate if A is assignable to B.

This is the internal logic of Assignable. It does not check against special types.

It is suitable for building custom types.

Type Parameters