Skip to content

Commit

Permalink
Update lib/util/propTypes.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
lukeapage and ljharb committed Jul 28, 2019
1 parent 39c44ce commit e677d82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/propTypes.js
Expand Up @@ -549,7 +549,8 @@ module.exports = function propTypesInstructions(context, components, utils) {
if (propTypes.id.name === '$ReadOnly') {
ignorePropsValidation = declarePropTypesForObjectTypeAnnotation(
propTypes.typeParameters.params[0],
declaredPropTypes);
declaredPropTypes
);
} else {
ignorePropsValidation = true;
}
Expand Down

0 comments on commit e677d82

Please sign in to comment.