(props, propName, componentName, location, propFullName, secret)
| 7781 | |
| 7782 | module.exports = function () { |
| 7783 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 7784 | if (secret === ReactPropTypesSecret) { |
| 7785 | // It is still safe when called from React. |
| 7786 | return; |
| 7787 | } |
| 7788 | |
| 7789 | var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types'); |
| 7790 | err.name = 'Invariant Violation'; |
| 7791 | throw err; |
| 7792 | } |
| 7793 | |
| 7794 | ; |
| 7795 | shim.isRequired = shim; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…