class-validator
class-validator copied to clipboard
question: I have no types for ValidatorJS
I had been struggling as VSCode would not show errors across the project. As you can see I always use groups, and because all ValidatorJS options are not properly typed, I didn't figure out I'm passing in many occasions the ValidationOptions instead, so neither the groups would work, neither the validation itself.
For instance I was having such a erroneous annotation:
@IsDateString({ groups: ['validate', 'create', 'update'] })
Thanks a lot ^^