Skip to content

Commit

Permalink
refactor: rename proptype param var
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryBrown0 committed Sep 6, 2023
1 parent 4dd303d commit 7c356ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,9 @@ module.exports = function propTypesInstructions(context, components, utils) {
)
)
) {
const propTypes = node.parent.typeArguments || node.parent.typeParameters;
const typeParams = node.parent.typeArguments || node.parent.typeParameters;
const declaredPropTypes = {};
const obj = new DeclarePropTypesForTSTypeAnnotation(propTypes.params[1], declaredPropTypes);
const obj = new DeclarePropTypesForTSTypeAnnotation(typeParams.params[1], declaredPropTypes);
components.set(node, {
declaredPropTypes: obj.declaredPropTypes,
ignorePropsValidation: obj.shouldIgnorePropTypes,
Expand Down

0 comments on commit 7c356ee

Please sign in to comment.