-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* convert the `matchVariant` to look more like `addVariant` With the biggest difference that the `matchVariant` will have a callback function that receives the current value of the variant. * use object as argument for `matchVariant` callback This will allow us to add more properties in the future if needed without breaking changes. - This is a breaking change: `(value) => ...` -> `({ value, other }) => ...` - This is **not** a breaking change: `({ value }) => ...` -> `({ value, other }) => ...` * add types for `matchVariant`
- Loading branch information
1 parent
be429b7
commit 4fddd2d
Showing
3 changed files
with
28 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters