Skip to content

Commit 6524e58

Browse files
committed
bugfix
1 parent 7862b45 commit 6524e58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/util/propTypes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ module.exports = function propTypesInstructions(context, components, utils) {
548548
case 'GenericTypeAnnotation':
549549
if (propTypes.id.name === '$ReadOnly') {
550550
ignorePropsValidation = declarePropTypesForObjectTypeAnnotation(propTypes.typeParameters.params[0], declaredPropTypes);
551+
} else {
552+
ignorePropsValidation = true;
551553
}
552554
break;
553555
case null:

0 commit comments

Comments
 (0)