You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
563 B
16 lines
563 B
2 years ago
|
"use strict";
|
||
|
|
||
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
||
|
|
||
|
exports.__esModule = true;
|
||
|
exports["default"] = verifyPlainObject;
|
||
|
|
||
|
var _isPlainObject = _interopRequireDefault(require("./isPlainObject"));
|
||
|
|
||
|
var _warning = _interopRequireDefault(require("./warning"));
|
||
|
|
||
|
function verifyPlainObject(value, displayName, methodName) {
|
||
|
if (!(0, _isPlainObject["default"])(value)) {
|
||
|
(0, _warning["default"])(methodName + "() in " + displayName + " must return a plain object. Instead received " + value + ".");
|
||
|
}
|
||
|
}
|