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

How would I do something like "require 2 props or this 1 other prop"? #593

Closed
matthew-dean opened this issue Apr 12, 2023 · 1 comment
Closed

Comments

@matthew-dean
Copy link

Thanks for the great library!

I have a situation where I want to define a type that either has 2 required props OR 1 other required prop. Like the object must define cloudName & publicId OR url, but not just one of cloudName or publicId.

Are there enough utility props present to do this?

@matthew-dean
Copy link
Author

Never mind! I think the one I'm looking for is MergeExclusive.

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

No branches or pull requests

1 participant