You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
The above won't work because I don't want to apply that last validator to a property named ...rest, I want to apply it to the rest object that you would get when you destructure the remaining properties.
Is this possible to do with existing prop types, or would it require a new prop type, such as:
If not for x, you could combine y and objectOf and it’d work fine.
I suspect you can use the combinators in npmjs.com/airbnb-prop-types to do what you want, but it’d be a bit cumbersome. I’ll have to think on this one.
Suppose I want something like this:
The above won't work because I don't want to apply that last validator to a property named
...rest
, I want to apply it to therest
object that you would get when you destructure the remaining properties.Is this possible to do with existing prop types, or would it require a new prop type, such as:
The text was updated successfully, but these errors were encountered: