Centeva / TypeScripter

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

DataService does not generate Nullable params properly. #38

Closed Devcon4 closed 5 years ago

Devcon4 commented 5 years ago

If you create a controller with a nullable param Typescripter does not mark that param as null in the DataService.ts. The workaround is to pass undefined for nullable params.

pdeffendol commented 5 years ago

Ah, this is the same thing I just talked to @Devcon4 about. I may look into modifying the generator to output a conditional instead of just interpolating the parameter value right into the URL query string.