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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feel free to raise a question that you have faced in your projects, please clearly describe it so people can better help you with it.
If we found it's solvable and good to be in our collection, we will properly credit you as the original question provider.
An ArrayToUnions<T> generic coverting array/tuple to its values' union
ArrayToUnions<T>
const arr = ['foo', 'bar'] as const type union = ArrayToUnion<typeof arr> // expect to be 'foo' | 'bar'
The text was updated successfully, but these errors were encountered:
It's doable: https://github.com/andnp/SimplyTyped#unionizetuple
Sorry, something went wrong.
Resolved by #7
[#1] 13-warm-hello-world 馃挕
2c9e5f5
No branches or pull requests
馃挕 Question Request
Feel free to raise a question that you have faced in your projects,
please clearly describe it so people can better help you with it.
If we found it's solvable and good to be in our collection,
we will properly credit you as the original question provider.
An
ArrayToUnions<T>
generic coverting array/tuple to its values' unionThe text was updated successfully, but these errors were encountered: