Type alias RightT<TEither>

RightT<TEither>: [TEither] extends [Either<any, infer B>]
    ? B
    : never

Extract the Right value type B from the type Either<A, B>.

Type Parameters

  • TEither extends Either<any, any>

Generated using TypeDoc