File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ module.exports = {
84
84
* @param {String[] } keyList Dot separated name of the prop to check.
85
85
* @returns {Boolean } True if the prop is declared, false if not.
86
86
*/
87
- function _isDeclaredInComponent ( declaredPropTypes , keyList ) {
87
+ function internalIsDeclaredInComponent ( declaredPropTypes , keyList ) {
88
88
for ( let i = 0 , j = keyList . length ; i < j ; i ++ ) {
89
89
const key = keyList [ i ] ;
90
90
const propType = (
@@ -120,7 +120,7 @@ module.exports = {
120
120
const unionPropType = { } ;
121
121
for ( let k = 0 , z = unionTypes . length ; k < z ; k ++ ) {
122
122
unionPropType [ key ] = unionTypes [ k ] ;
123
- const isValid = _isDeclaredInComponent (
123
+ const isValid = internalIsDeclaredInComponent (
124
124
unionPropType ,
125
125
keyList . slice ( i )
126
126
) ;
@@ -148,7 +148,7 @@ module.exports = {
148
148
const component = components . get ( node ) ;
149
149
150
150
const isDeclared = component && component . confidence === 2 &&
151
- _isDeclaredInComponent ( component . declaredPropTypes || { } , names ) ;
151
+ internalIsDeclaredInComponent ( component . declaredPropTypes || { } , names ) ;
152
152
if ( isDeclared ) {
153
153
return true ;
154
154
}
You can’t perform that action at this time.
0 commit comments