docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

fix: add type definitions and fix arrow function param

Open tomaszwysocki opened this issue 1 year ago • 1 comments

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

tomaszwysocki avatar Feb 23 '24 22:02 tomaszwysocki

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.

tomaszwysocki avatar Feb 29 '24 17:02 tomaszwysocki