invalidArgFactory.js 328 B

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