/** * Compact types Either | Either = Either * * @tsplus static Either.Ops compact * @tsplus macro identity */ export function compact>( _: E ): [E] extends [Either] ? Either : E { return _ as any }