crates/core/tests/snapshots/webpack4_unpack__module-45.snap

GitHub
---
source: crates/core/tests/webpack4_unpack.rs
expression: code
---
import r from "./module-44.js";
function o() {}
function i() {}
i.resetWarningCache = o;
export default function() {
    function e(e, t, n, o, i, a) {
        if (a !== r) {
            const u = 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");
            u.name = "Invariant Violation";
            throw u;
        }
    }
    function t() {
        return e;
    }
    e.isRequired = e;
    const n = {
        array: e,
        bigint: e,
        bool: e,
        func: e,
        number: e,
        object: e,
        string: e,
        symbol: e,
        any: e,
        arrayOf: t,
        element: e,
        elementType: e,
        instanceOf: t,
        node: e,
        objectOf: t,
        oneOf: t,
        oneOfType: t,
        shape: t,
        exact: t,
        checkPropTypes: i,
        resetWarningCache: o
    };
    n.PropTypes = n;
    return n;
};