(props, propName, componentName, location, propFullName, secret)
| 1015 | |
| 1016 | module.exports = function() { |
| 1017 | function shim(props, propName, componentName, location, propFullName, secret) { |
| 1018 | if (secret === ReactPropTypesSecret) { |
| 1019 | // It is still safe when called from React. |
| 1020 | return; |
| 1021 | } |
| 1022 | invariant( |
| 1023 | false, |
| 1024 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + |
| 1025 | 'Use PropTypes.checkPropTypes() to call them. ' + |
| 1026 | 'Read more at http://fb.me/use-check-prop-types' |
| 1027 | ); |
| 1028 | }; |
| 1029 | shim.isRequired = shim; |
| 1030 | function getShim() { |
| 1031 | return shim; |
nothing calls this directly
no test coverage detected