JGWhy use Either instead of a discriminated union?Comment·Article·Jul 8, 2023·Stop catching errors in TypeScript; Use the Either type to make your code predictable