[RFC] - Annotation for nested properties #46
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
question
Further information is requested
Annotation for nested properties
Here is the current syntax for deserializing a nested object.
That line,
fromJsonStrategy: (json) => new Test1().fromJson(json),
: I bet this is going to be one of those "you don't know typescript" things, but it'd be cool to have a shortcut for that. Something like:or even better:
Motivation
Make model classes more readable when doing ser/deser of nested properties.
Design Detail
Drawbacks
Rationale and Alternatives
Prior Art
Unresolved questions
The fact that decorators don't automatically have access to the TS type is a big buzzkill.
The text was updated successfully, but these errors were encountered: