Hacker News new | ask | show | jobs
by ng12 3356 days ago
AFAIK there's no good solution. That's why it works best when your back end is using Typescript as well -- your route returns the same interface the client is expecting.
1 comments

This goes out the window when you have multiple deployed/running versions of your client or server.
Would one solve this by versioning the types somehow? Honest question; I'm pretty new to TS.