MCPcopy Create free account
hub / github.com/docker/getting-started / shim

Function shim

app/src/static/js/react-bootstrap.js:7783–7792  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

7781
7782module.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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…