import { Bool } from './Bool'; /** * Type-level equivalent of ternary operator `a ? b : c`. * Seems good for recursion, but a type can't reference itself in the top layer. */ export type If = { 1: Then, 0: Else }[Cond];