Transforming Date Fields in TypeScript Schemas
Hi. I need an advice. So, we have two schemas:
I need somehow transform one field from DecodedObject to three different fields in EncodedObject.
Also planDate and factDate should have their corresponding mirror names with suffixes (_year, _month, _day).
planDate and factDate are just for example, the fields with desired type can have any name.
The ideal solution would be:
so the question is: how to implement
I need somehow transform one field from DecodedObject to three different fields in EncodedObject.
Also planDate and factDate should have their corresponding mirror names with suffixes (_year, _month, _day).
planDate and factDate are just for example, the fields with desired type can have any name.
The ideal solution would be:
so the question is: how to implement
DateFromYearMonthDayFields? Is this even possible or should I use some other algorithm for this kind of task?