amis-rpc-design/node_modules/react-redux/lib/connect/invalidArgFactory.js
2023-10-07 19:42:30 +08:00

10 lines
328 B
JavaScript

"use strict";
exports.__esModule = true;
exports.createInvalidArgFactory = createInvalidArgFactory;
function createInvalidArgFactory(arg, name) {
return (dispatch, options) => {
throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
};
}