I personally find it very challenging to manage similar interfaces, while using proper naming and accounting for type safety. A good example can be having a GetDto which contains id (and some other fields) vs PostDto which has less field, but in the end describes the same object. Whatβs your take on that? Any suggestions? Would you use omit with only one interface, optional fields or maintain two separate interfaces ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I personally find it very challenging to manage similar interfaces, while using proper naming and accounting for type safety. A good example can be having a GetDto which contains id (and some other fields) vs PostDto which has less field, but in the end describes the same object. Whatβs your take on that? Any suggestions? Would you use omit with only one interface, optional fields or maintain two separate interfaces ?