Type Alias XOR<T, U>

XOR<T, U>: (T | U) extends object
    ? Without<T, U> & U | Without<U, T> & T
    : T | U

Type Parameters

  • T
  • U