4lessandrodev / rich-domain

A lib to help you create a robust project based on domain driven-design (ddd) principles with typescript and zero dependencies.
https://www.npmjs.com/package/rich-domain
MIT License
122 stars 5 forks source link

#145 Feat: AutoMapperSerializer - add types for to object method #146

Closed hikinine closed 6 months ago

hikinine commented 6 months ago

reference issue

Fix|Change|Update

This pull request aims to solve the problem of inferring the correct types in the toObject method implementing a serializer at type checking level without break changes.

The only change made at runtime is that toObject returns a deepReadonly object

issue #145

Resolves #145

hikinine commented 6 months ago

My bad I just noticed that my auto-eslint changed some import module order and indentation