Type Alias SubTypeOr<A, B>

SubTypeOr<A, B>: IfExtends<A, B, A, B>

Return A if A is assignable to B, otherwise return B

Type Parameters

  • A
  • B