You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue that is already proposing this?
I have searched the existing issues
Is your feature request related to a problem? Please describe it
Mapped types is a great way to reduce boilerplate code. I have a standard backend service that exposes a few endpoints. Along with this service, I also have an SDK that reuses the same DTOs as the backend service. The problem is that PartialType is only doing a shallow implementation. My multi-level DTOs now require users to specify all of the properties in nested layers instead of making them optional.
Describe the solution you'd like
It would be great to have DeepPartialType so that all nested layers become optional
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Mapped types is a great way to reduce boilerplate code. I have a standard backend service that exposes a few endpoints. Along with this service, I also have an SDK that reuses the same DTOs as the backend service. The problem is that
PartialType
is only doing a shallow implementation. My multi-level DTOs now require users to specify all of the properties in nested layers instead of making them optional.Describe the solution you'd like
It would be great to have DeepPartialType so that all nested layers become optional
Teachability, documentation, adoption, migration strategy
Usage is identical to
PartialType
What is the motivation / use case for changing the behavior?
To reduce boilerplate code and make developer life easier
The text was updated successfully, but these errors were encountered: