Files
NapCatQQ/.pnpm-store/v3/files/3f/eb74c3a7a93425b8f3d803ff9785584d16c38b5514550b74f4377a7bf4301588a042c41d57b803d19ad7dfe1fa91ad7f74f33ea2d4ffb0c9fb69de28ebfce6
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
341 B
Plaintext

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}.`,
)
}
}