-
Notifications
You must be signed in to change notification settings - Fork 46
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
Validate a map's key type and value type #4
Comments
I have never used anything but strings or numbers as keys, especially for data I'm passing as a prop. I am curious what your use case is for needing to map the type of the key? I should have some time next week to work on this. Right now I'm working on a writeup for another project. If you already have an implementation, I'm open to a PR. |
I still use primarily strings as keys, but there are three-ish scenarios (all somewhat vague, I'll admit) that I've found a need for something like this
But I do love this little library 😄. I haven't had time to implement yet but if I do before you I'll submit a PR. |
Actually implemented in PR: #30 |
Would be cool to have!
For example
The text was updated successfully, but these errors were encountered: