Files
discord-decomp/_bundle/emptyFunction_12254.js
T
2026-11-01 12:12:55 +02:00

45 lines
1.3 KiB
JavaScript

// Metro module 12254 (f12255).
import * as _Module12255 from "./Module12255";
let emptyFunctionWithReset;
const emptyFunction = function emptyFunction() {};
emptyFunctionWithReset = function emptyFunctionWithReset() {};
emptyFunctionWithReset.resetWarningCache = emptyFunction;
module.exports = function() {
const shim2 = function shim(a0, a1, a2, a3, a4, a5) {
if (a5 !== _Module12255) {
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 getShim = function getShim() {
return shim2;
};
shim2.isRequired = shim2;
const PropTypes = {
array: shim2,
bigint: shim2,
bool: shim2,
func: shim2,
number: shim2,
object: shim2,
string: shim2,
symbol: shim2,
any: shim2,
arrayOf: getShim,
element: shim2,
elementType: shim2,
instanceOf: getShim,
node: shim2,
objectOf: getShim,
oneOf: getShim,
oneOfType: getShim,
shape: getShim,
exact: getShim,
checkPropTypes: emptyFunctionWithReset,
resetWarningCache: emptyFunction
};
PropTypes.PropTypes = PropTypes;
return PropTypes;
};