Replies: 1 comment
-
Hey @ByteSturm, it is actually a blocker on my end as I'm not sure how to compose the mixin (the mapped types) in a type-safe way #271 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @nartc,
in my NestJS project I use for my update DTOs often the mapped type "PartialType" like in the following example:
export class UpdateCatDto extends PartialType(CreateCatDto) {}
When looking at the documentation of automapper, I saw that there do exist mapped types too. I know the NestJS "PartialType" is from the
@nestjs/swagger
package. Would it make sense to add this "PartialType" functionality to automapper? (At best compatible to the@nestjs/swagger
package 😄 )The benefit would be not having to define the update DTOs explicitly if they are identical as the create DTOs, just all properties being optional.
Beta Was this translation helpful? Give feedback.
All reactions