fix: isObject returns true for functions but docs say it should be false #2515
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
lib version used:
"0.14.1"
Minimal code-snippet showcasing the problem
jest test case
Docs for
@IsObject()
readI assume
Expected behavior
I personally would expect
isObject(fn)
to returnfalse
.Actual behavior
Investigation
class-validator/src/decorator/typechecker/IsObject.ts
Line 11 in 63fe9c5
The text was updated successfully, but these errors were encountered: