decord/source/12065_emptyFunction.js
2026-07-21 06:55:02 +00:00

31 lines
1.2 KiB
JavaScript

// Module ID: 12065
// Function ID: 93142
// Name: emptyFunction
// Dependencies: [771751943]
// Module 12065 (emptyFunction)
function emptyFunction() {
}
function emptyFunctionWithReset() {
}
emptyFunctionWithReset.resetWarningCache = emptyFunction;
export default () => {
function shim(arg0, arg1, arg2, arg3, arg4, arg5) {
if (arg5 !== shim(closure_1[0])) {
const _Error = Error;
const error = 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");
error.name = "Invariant Violation";
throw error;
}
}
const require = shim;
function getShim() {
return shim;
}
shim.isRequired = shim;
const obj = { array: shim, bigint: shim, bool: shim, func: shim, number: shim, object: shim, string: shim, symbol: shim, any: shim, arrayOf: getShim, element: shim, elementType: shim, instanceOf: getShim, node: shim, objectOf: getShim, oneOf: getShim, oneOfType: getShim, shape: getShim, exact: getShim, checkPropTypes: emptyFunctionWithReset, resetWarningCache: emptyFunction, PropTypes: obj };
return obj;
};