From 7c356eef0954d9946ab836a49030c69be6ae581c Mon Sep 17 00:00:00 2001 From: HenryBrown0 <26250092+HenryBrown0@users.noreply.github.com> Date: Wed, 6 Sep 2023 19:57:42 +0100 Subject: [PATCH] refactor: rename proptype param var --- lib/util/propTypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/propTypes.js b/lib/util/propTypes.js index 6ff6c3dcc5..15c7b44fec 100644 --- a/lib/util/propTypes.js +++ b/lib/util/propTypes.js @@ -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,