config icon indicating copy to clipboard operation
config copied to clipboard

fix(common): infer getOrThrow return value

Open swarthy opened this issue 3 years ago • 0 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
  • [x] Tests for the changes have been added (for bug fixes / features)
  • [x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [x] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Currently getOrThrow return type is whole config object instead of propertyPath type.

Issue Number: N/A

What is the new behavior?

getOrThrow return type is same as K[propertyPath]

Does this PR introduce a breaking change?

  • [ ] Yes
  • [X] No

Other information

swarthy avatar Aug 16 '22 05:08 swarthy