-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation #397
base: master
Are you sure you want to change the base?
Validation #397
Conversation
@mayeaux
|
Looks really good! I like the JSDocs usage I was planning to start that soon so I'm glad you got the ball rolling. Quick question what's this for: Other than that I can merge this right away, thanks my friend! |
It's for better type inference. VSCode comes pre-bundled with Typescript which adds a lot of type info and tooltips and also infers types off JSDoc comments. |
@BassOfBass : check the review: this works for you? it throws an error for me TypeError: req.sanitize(...).trim(...).escape is not a function |
@mayeaux Guess this version of validator can't into chaining. |
@mayeaux please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after validation chaining fix
I believe validator now supports chaining. Any reason not to just update validator in dependencies?
@mr-winson |
Fix mentioned in #396 (comment).