-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Any way to work with mapped types from @nestjs/swagger
#173
Comments
Interesting. I'll have to take a look and will let you know ASAP if it's a go or no-go. Thanks for the issue |
Not sure if I have time this weekend to look into this. I'm going to put this in the backlog for now. |
It's fine 👍 You can download a minimal reproduction here later: https://codesandbox.io/s/nartcautomapper-issue-173-wv1s0 |
@micalevisk Looking at |
I want to use utility functions like
OmitType
(provided by@nestjs/swagger
lib) to do something like this:but the annotations generated by
@AutoMap()
decorator are not inherited when using these helpers functions, so all props annotated with@AutoMap()
will not be auto mapped by the mapper (since they're aren't identified).Maybe this is a limitation of @nestjs/swagger (or TS?) but I'm not sure.
Any thoughts?
Great lib btw 🥰
minimal reproduction
https://codesandbox.io/s/nartcautomapper-issue-173-wv1s0
The text was updated successfully, but these errors were encountered: