Closed DZakh closed 2 years ago
Reproduced on superstruct version 0.15.3
I have a struct:
const applicationStruct = s.object({ status: s.number() }) s.object({ applications: s.array(applicationStruct), })
And when I call validation on it I get the "struct.validator is not a function" TypeError
"struct.validator is not a function"
My bad. I used union instead of enums.
union
enums
status: s.enums(Object.values(APPLICATION_STATUSES))
Reproduced on superstruct version 0.15.3
I have a struct:
And when I call validation on it I get the
"struct.validator is not a function"
TypeError