From b3138adfcfc1308d24b1e5f0c97b5f5251d8079c Mon Sep 17 00:00:00 2001 From: Kostis Maninakis Date: Sat, 11 Feb 2023 23:26:21 +0100 Subject: [PATCH] docs(readme): link to src for ts not having xor operator --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e173a32..bbdc67c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Typescript's union operator (`|`) allows combining two object types `A` and `B`, But sometimes the requirements dictate that we combine two types with mutually exclusive members. So take the members `A.a` and `B.b`. Given `type C = A | B` then we want to impose the restriction that we can set _either_ `C.a` _or_ `C.b` _but never both_ AND _always at least one of the two_! -Typescript does not have this feature built-in. +[Typescript does not have this feature built-in.](https://github.com/Microsoft/TypeScript/issues/14094) The package `ts-xor` introduces the new custom type `XOR`. You can use XOR to compose your own custom types with mutually exclusive members.