/* @see https://github.com/Microsoft/TypeScript/issues/14094#issuecomment-373782604 */ /** @hidden */ export type Without = { [P in Exclude]?: never }; /** @hidden */ export type XOR = (T | U) extends object ? (Without & U) | (Without & T) : T | U;