From cb42bc0c61d78b26a3caeee2a824f3ec78773a1e Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Wed, 11 Oct 2023 19:13:01 +0300 Subject: [PATCH] build fixed --- src/utilityTypes.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/utilityTypes.ts b/src/utilityTypes.ts index 08972b557..55915460e 100644 --- a/src/utilityTypes.ts +++ b/src/utilityTypes.ts @@ -5,12 +5,6 @@ export namespace UtilityTypes { /** Get the XOR type which could make 2 types exclude each other */ export type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U; - export type XOR3 = - (T | U | V) extends (infer R) - ? (R extends T ? (U | V) : R) extends R - ? (R extends U ? (T | V) : R) extends R - ? (R extends V ? (T | U) : never) - : never - : never - : never; + /** Get the XOR type for 3 types */ + export type XOR3 = XOR, V>; }