Type Alias $BranchOptions<$B>

$BranchOptions<$B>: {
    [k in $B["value"]]: $B extends {
            value: k;
        }
        ? $B
        : never
}

🧰 type util

Define the branch options of the specified branches.

type $YourOptions = $BranchOptions<$Then | $Else> // { $then: $Then, $else: $Else }

Type Parameters