Type Alias $BranchOptions<$B>

$BranchOptions: { [k in $B[$ValueKey]]: $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