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
________________________________
From: Jordan Harband <notifications@github.com>
Sent: Friday, December 1, 2017 5:51:48 PM
To: facebook/prop-types
Cc: Marko Schulz; Author
Subject: Re: [facebook/prop-types] Shape should accept functions and arrays if they satisfy the shape (#143)
shape requires a plain object.
I built withShape in https://npmjs.com/airbnb-prop-types to cover this case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#143 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAP6YazgJsCzY3TzRCcUBzE4KaTD6UFeks5s8C6jgaJpZM4QyS4q>.
If an array or function fulfills a shape, it should not be rejected by the shape proptype. E.g. with
f
should satisfyPropTypes.shape({someProp: PropTypes.string.isRequired})
but is detected as a violation:The text was updated successfully, but these errors were encountered: