Prop type object if forbidden

Config.propTypes = {
  saveConfigFunc: propTypes.func.isRequired,
  configData: propTypes.object,
};

报错: Prop type object if forbidden

改为PropTypes.oneOfType([PropTypes.object]).isRequired

Config.propTypes = {
  saveConfigFunc: propTypes.func.isRequired,
  configData: propTypes.oneOfType([propTypes.object]).isRequired,
};