ljharb / prop-types-tools

Custom React PropType validators
MIT License
671 stars 50 forks source link

Pass an array of components to childrenOfType? #44

Closed patodk closed 6 years ago

patodk commented 6 years ago

I currently need to validate certain child components. Is it possible to pass childrenOfType an array of the components I need to validate?

ljharb commented 6 years ago

childrenOfType(...components)?

patodk commented 6 years ago

I was missing the spread. Thanks!