Type alias LeftT<TEither>

LeftT<TEither>: [TEither] extends [Either<infer A, any>]
    ? A
    : never

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

Type Parameters

  • TEither extends Either<any, any>

Generated using TypeDoc