(componentName, location, propFullName, key, type)
| 584 | } |
| 585 | |
| 586 | function invalidValidatorError(componentName, location, propFullName, key, type) { |
| 587 | return new PropTypeError( |
| 588 | (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + |
| 589 | 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' |
| 590 | ); |
| 591 | } |
| 592 | |
| 593 | function createShapeTypeChecker(shapeTypes) { |
| 594 | function validate(props, propName, componentName, location, propFullName) { |
no outgoing calls
no test coverage detected
searching dependent graphs…