-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
docs(file-upload): add file validators section #2360
Conversation
@kamilmysliwiec pinging you here for visibility |
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.
LGTM. Is there a way we could better type file
in the FileValidator
?
Yea, I also thought about it.. the problem is that usually we can't reference Multer type on NestJS package and create a dependency. I had a discussion about that with Kamil but I can't find the original PR now 🤔 anyway, the final solution was to type it as any, but there might be a better solution, maybe with generics? I can work on that @jmcdo29 |
Possibly just a hint on the docs could suffice, about what could be used and how to import it, but make it clear that this is just an option |
@jmcdo29 type hint added, line 111. |
@kamilmysliwiec I think I resolved all issues pointed out, would you mind to review again? |
LGTM |
Any chance you can rebase to the 9.0.0 branch? @thiagomini 🙌 |
add missing verb
add type hint for file in file validator
rewrite sentences as suggested Co-authored-by: Kamil Mysliwiec <[email protected]>
fix indentation of ts examples
fix table to ignore first row as header
fix bold text by changing it to html tag
Done @kamilmysliwiec |
LGTM @thiagomini thanks! |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Other information
This Docs change is related to this PR which adds FileValidators