Skip to content
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

DEVEXP-339: Improve oneOf handling #37

Merged
merged 5 commits into from
Mar 18, 2024
Merged

Conversation

asein-sinch
Copy link
Collaborator

The lib ts-xor was promising on paper but when using it, I realized that TS was not able to infer the generated type.
This PR contains modification for SMS and Conversation.

  • For SMS it's mostly about ensuring the discriminator is properly used
  • For Conversation, it's about adding never properties to a type to ensure properties for various types are XOR-ed

@asein-sinch asein-sinch requested a review from a team March 18, 2024 08:33
@asein-sinch asein-sinch merged commit 6d425e6 into main Mar 18, 2024
2 checks passed
@asein-sinch asein-sinch deleted the DEVEXP-339_oneOf-with-XOR branch March 18, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants