We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
to start with, allow two options:
type PickOnly<T, U> = { [P in keyof T]: T[P]; } & { [P in keyof U]?: never; }; type PickEither<T, U> = PickOnly<T, U> | PickOnly<U, T>;
https://stackoverflow.com/questions/37688318/typescript-interface-possible-to-make-one-or-the-other-properties-required
ideally, allow 2+ options
The text was updated successfully, but these errors were encountered:
actually, that implementation above does not allow typescript to guarantee that pairs of types are defined together
so, will need a better impelmentation than that to star even
Sorry, something went wrong.
No branches or pull requests
to start with, allow two options:
https://stackoverflow.com/questions/37688318/typescript-interface-possible-to-make-one-or-the-other-properties-required
ideally, allow 2+ options
The text was updated successfully, but these errors were encountered: