decord/source/4174_emptyFunction.js

32 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 4174
// Function ID: 4175
2026-07-20 16:05:17 +00:00
// Name: emptyFunction
2026-08-13 07:00:46 +00:00
// Dependencies: [4175]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 4174 (emptyFunction)
2026-07-20 16:05:17 +00:00
function emptyFunction() {
}
function emptyFunctionWithReset() {
}
emptyFunctionWithReset.resetWarningCache = emptyFunction;
export default () => {
function shim(arg0, arg1, arg2, arg3, arg4, arg5) {
2026-07-29 08:29:29 +00:00
if (arg5 !== shim(table[0])) {
2026-07-20 16:05:17 +00:00
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;
}
}
function getShim() {
return shim;
}
shim.isRequired = shim;
2026-07-29 08:29:29 +00:00
const obj = { array: 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 };
obj.PropTypes = obj;
2026-07-20 16:05:17 +00:00
return obj;
};