Centeva / TypeScripter

A tool to generate Typescript classes from c# models.
MIT License
4 stars 5 forks source link

Incompatible with RxJS 6+ #32

Closed pdeffendol closed 5 years ago

pdeffendol commented 5 years ago

The template for the DataService contains a line:

https://github.com/Centeva/TypeScripter/blob/master/TypeScripter.Common/Generators/DataServiceGenerator.cs#L161

return Observable.throw(errMsg);

For RxJS 6+, this should be changed to use throwError(errMsg)

To maintain compatibility maybe we need a configuration switch?

pdeffendol commented 5 years ago

Fixed in latest version (2.0.41)