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
Airbnb created a number of custom prop types (https://github.com/airbnb/prop-types), and we should allow for the generation of these (and any other) custom types. For instance, using their empty validator:
constcustomGenerators={empty: ()=>null}generateProps.init({generators: customGenerators})// Note: init doesn't currently take any optionsimport{empty}from'airbnb-prop-types'Component.propTypes={alwaysEmpty: empty.isRequired}generateProps(Component)// => Current: {}// => Proposed: { alwaysEmpty: null }
Airbnb created a number of custom prop types (https://github.com/airbnb/prop-types), and we should allow for the generation of these (and any other) custom types. For instance, using their
empty
validator:A real world example that I'd like right now:
The text was updated successfully, but these errors were encountered: