Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Jul 27, 2019
1 parent 7862b45 commit 13e2e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/util/propTypes.js
Expand Up @@ -548,6 +548,8 @@ module.exports = function propTypesInstructions(context, components, utils) {
case 'GenericTypeAnnotation':
if (propTypes.id.name === '$ReadOnly') {
ignorePropsValidation = declarePropTypesForObjectTypeAnnotation(propTypes.typeParameters.params[0], declaredPropTypes);
} else {
ignorePropsValidation = true;
}
break;
case null:
Expand Down

0 comments on commit 13e2e6c

Please sign in to comment.