-
-
Notifications
You must be signed in to change notification settings - Fork 312
Match.tagsTupleExhaustive
has been added
#4675
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
base: next-minor
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 35e0ac3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
But maybe would be better to introduce |
0dcc444
to
eff836f
Compare
5a37adc
to
9438333
Compare
729efa8
to
504de99
Compare
Probably what really needs changing then is improving the exhaustiveness checks. |
65cd12f
to
a8b59f1
Compare
@tim-smart |
The match exclusion logic should be updated so this is exhaustive by default. |
891e744
to
5a65e24
Compare
59ef614
to
7d8c110
Compare
Type
Description
Match.tagsTupleExhaustive
has been addedIt also preserves rendering of union member in type hints.
This is a special sugar for tagged sun-types designed to make it easier to work with a pattern in which the user wants to process all possible combinations of union members in a flat manner.
The function is not limited to a pair and can take a tuple of arbitrary length.

Related