MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / shim

Function shim

code/dependency-injection/public/app.js:1116–1127  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

1114
1115module.exports = function() {
1116 function shim(props, propName, componentName, location, propFullName, secret) {
1117 if (secret === ReactPropTypesSecret) {
1118 // It is still safe when called from React.
1119 return;
1120 }
1121 invariant(
1122 false,
1123 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1124 'Use PropTypes.checkPropTypes() to call them. ' +
1125 'Read more at http://fb.me/use-check-prop-types'
1126 );
1127 };
1128 shim.isRequired = shim;
1129 function getShim() {
1130 return shim;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected