#How to append extended class properties instead prepending?
14 messages · Page 1 of 1 (latest)
the order the fields are declared in doesn't matter
it doesn't matter since the declareation has no effect at runtime
when the TS class is compiled to JS, all those field declaration are removed, leaving only the constructor and methods
like in regular JS
now, you're also using decorators
they do act on the class, often adding extra steps before creating the class
I'm not sure there is a way to change the order in which the fields are inherited
so if the library doesn't provide that option with the decorators, there is no way to do that
also, if the order only matter when displaying the entity, there are probably options to select what fields to display or not, and in which order