In GitLab by @PhilipRoeggla on Apr 12, 2022, 10:43
The data structure is somewhat organic grown and difficult to maintain. I would like to update the structure, so that is understandable at a glance and that changes can be easily done, without going very dark corners of typescript ;-). Also a central place for conversions between types would be nice – not that every component, does it by it's own.
This would be:
Reduce dynamic properties on top levelDone
Currently LemmaRow has LemmaRow.user_columns: {[key: string]: value: any} AND LemmaRow { [user_column: string]: value: any, // All static propertiesDone
Split Legacy data and user data: user_columns, gideon_columns (no dynamic properties, but defined)
Remove unused types
Comment types – what do they mean. What are they used for – maybe for auto-generated ones as well.
As well, write down a mental model of type-flow = Documenation
Nullable and undefined types are mixed up / unintuitive to use
In GitLab by @PhilipRoeggla on Apr 12, 2022, 10:43
The data structure is somewhat organic grown and difficult to maintain. I would like to update the structure, so that is understandable at a glance and that changes can be easily done, without going very dark corners of typescript ;-). Also a central place for conversions between types would be nice – not that every component, does it by it's own.
This would be:
Reduce dynamic properties on top levelDoneCurrently LemmaRow hasDoneLemmaRow.user_columns: {[key: string]: value: any}
ANDLemmaRow { [user_column: string]: value: any, // All static properties
as
type castings