(props, propName, componentName, location, propFullName, secret)
| 894 | |
| 895 | module.exports = function() { |
| 896 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 897 | if (secret === ReactPropTypesSecret) { |
| 898 | // It is still safe when called from React. |
| 899 | return; |
| 900 | } |
| 901 | invariant( |
| 902 | false, |
| 903 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 904 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 905 | 'Read more at http://fb.me/use-check-prop-types' |
| 906 | ); |
| 907 | }; |
| 908 | shim.isRequired = shim; |
| 909 | function getShim() { |
| 910 | return shim; |
nothing calls this directly
no test coverage detected