Skip to content

Commit 7c356ee

Browse files
committed
refactor: rename proptype param var
1 parent 4dd303d commit 7c356ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/util/propTypes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1017,9 +1017,9 @@ module.exports = function propTypesInstructions(context, components, utils) {
10171017
)
10181018
)
10191019
) {
1020-
const propTypes = node.parent.typeArguments || node.parent.typeParameters;
1020+
const typeParams = node.parent.typeArguments || node.parent.typeParameters;
10211021
const declaredPropTypes = {};
1022-
const obj = new DeclarePropTypesForTSTypeAnnotation(propTypes.params[1], declaredPropTypes);
1022+
const obj = new DeclarePropTypesForTSTypeAnnotation(typeParams.params[1], declaredPropTypes);
10231023
components.set(node, {
10241024
declaredPropTypes: obj.declaredPropTypes,
10251025
ignorePropsValidation: obj.shouldIgnorePropTypes,

0 commit comments

Comments
 (0)