Files
Housekeeping-web-admin/node_modules/react-redux/src/utils/verifyPlainObject.ts
T
2026-06-24 09:48:54 +02:00

15 lines
341 B
TypeScript

import isPlainObject from './isPlainObject'
import warning from './warning'
export default function verifyPlainObject(
value: unknown,
displayName: string,
methodName: string,
) {
if (!isPlainObject(value)) {
warning(
`${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`,
)
}
}