Currently, Angular's HttpClient library supports typed returns, for example:
HttpClient.get<Foo>(...);
However, Angular returns a "structural subtype" that conforms to Foo which is really a generic object that conforms to the properties defined by Foo.
It'd be nice if we can take this a step further and have a plugin that uses ts-parse that will provide a real instance of Foo.
Currently, Angular's HttpClient library supports typed returns, for example:
However, Angular returns a "structural subtype" that conforms to
Foowhich is really a generic object that conforms to the properties defined byFoo.It'd be nice if we can take this a step further and have a plugin that uses ts-parse that will provide a real instance of
Foo.