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

Get the XOR type which could make 2 types exclude each other

Type Parameters

  • T
  • U

Generated using TypeDoc v0.25.12