Hacker News new | ask | show | jobs
by grovesNL 3346 days ago
I'm not sure why you need to modify your serialization or protocol to get type safety.

I've been using NSwag (https://github.com/NSwag/NSwag) to generate TypeScript clients from .ASP.NET controllers and it works great. It can generate TypeScript request/response handlers, and interfaces or classes for any public facing models.