Hacker News new | ask | show | jobs
by mi_lk 76 days ago
> I'm convinced that this project has got 2 things absolutely spot on. TypeScript and Worker plugins.

Can you explain why TS is spot on?

1 comments

The main thing is unified types.

- I've been done GraphQL server with a build step to share types between languages.

- I've used untyped JS client side code.

Both are prone to bugs, and not much fun.

TS for front and back end: sharing types means you'll have editor type hints, catch type errors at lint (or build), and you might even share validation logic between client and browser.