Closed YouCii closed 6 years ago
There's not really a way to do it with JS (without layering a type system on top).
Since propTypes are run on the prop value - which doesn't provide any information about what arguments it's going to eventually be called with - it's basically impossible to check this with propTypes.
emmming, a little pity. Thanks for your reply @ljharb
It's not enough to constrain the 'onCheckChange' without parms-limit. Maybe I express my needs clearly.