Simplifying TypeScript Class and Struct Definitions with Effect
I wish we could do this easier:
- *Import is only there for reading from the external system, the internal system and it's data store should use the non *Import versions
- the structure is 1:1 apart from the renames
- im doing the
I thought maybe non Import = Import minus property signatures, but one can't easily restore the schemas contained within the property signatures of course, and we still need to do things recursively.
The inverse: Import = Non Import + S.rename, but now both encoded and decoded are renamed. also in my case, it also happens to be that Non Import code could more easily point to Import code rather than the other way around, but that's just my organizational concern I suppose.
- *Import is only there for reading from the external system, the internal system and it's data store should use the non *Import versions
- the structure is 1:1 apart from the renames
- im doing the
compose because I can't just assign a *Import value to a non *Import as they're classes and got instance checks etc.I thought maybe non Import = Import minus property signatures, but one can't easily restore the schemas contained within the property signatures of course, and we still need to do things recursively.
The inverse: Import = Non Import + S.rename, but now both encoded and decoded are renamed. also in my case, it also happens to be that Non Import code could more easily point to Import code rather than the other way around, but that's just my organizational concern I suppose.
