|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
341 bytes
|
| Line | |
|---|
| 1 | import isPlainObject from './isPlainObject'
|
|---|
| 2 | import warning from './warning'
|
|---|
| 3 |
|
|---|
| 4 | export default function verifyPlainObject(
|
|---|
| 5 | value: unknown,
|
|---|
| 6 | displayName: string,
|
|---|
| 7 | methodName: string,
|
|---|
| 8 | ) {
|
|---|
| 9 | if (!isPlainObject(value)) {
|
|---|
| 10 | warning(
|
|---|
| 11 | `${methodName}() in ${displayName} must return a plain object. Instead received ${value}.`,
|
|---|
| 12 | )
|
|---|
| 13 | }
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.