New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XOR #137
Comments
I'm curious to hear your perspective on this because you have a lot of experience with advanced generics |
Just curious, how is this any different from using the basic or '|'? Edit:
This should be valid TS |
XOR is really useful type. Built-in union type allows a mix of two types, which is unwanted behavior. |
Is your feature request related to a real problem or use-case?
This is from a long discussion in TS issues
microsoft/TypeScript#14094
Describe a solution including usage in code example
Who does this impact? Who is this for?
A lot of APIs that return one or another responses.
The text was updated successfully, but these errors were encountered: