docs.nestjs.com
docs.nestjs.com copied to clipboard
fix: add type definitions and fix arrow function param
I modified the User type to include the appropriate values. Additionally, I enclosed a sole arrow function parameter in parentheses, following the same convention enforced by Nest's Prettier.
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/nestjs/docs.nestjs.com/blob/master/CONTRIBUTING.md
PR Type
What kind of change does this PR introduce?
- [ ] Bugfix
- [ ] Feature
- [x] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [x] Docs
- [ ] Other... Please describe:
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
I believe this is a rather straightforward example, and verifying that utility type shouldn't pose much difficulty. In my opinion, it aligns well with Nest's methodology of avoiding longer explanations, encouraging readers to explore on their own.