News for hackers. Stuff that matters.
Re:Google Feedback on TypeScript 3.5 by juliendc on Monday September 09, 2019 @04:47PM (#20922312)
I've recently built a Node server with TypeScript and it's a joy to use with external libraries when the types are available. It's such a time saver to not have to guess which method to call with which arguments (I've had only experience with dynamic languages before). Some libraries don't have types or they are outdated but it was a minority.

With the experience I've found that most of the type errors are actually between the backend and the frontend in web applications. It's still hard to fully type the entire flow from the database calls with the ORM to the objects manipulation in the frontend.

How are you dealing with that? We used Nexus with GraphQL but it was still a bit cumbersome.

Re:Google Feedback on TypeScript 3.5 by gregplaysguitar on Monday September 09, 2019 @06:18PM (#20923099)
We use https://graphql-code-generator.com/ in combination with some scripts which update the graphql schema at build time - works great. Using Apollo on the front end.

Having types straddle the client/server divide is a huge win