Hacker News new | ask | show | jobs
by n_e 38 days ago
enums and decorators mainly. There are also subtleties such as having the ts file extension in imports. Also imports aren't transpiled in cjs so you need to need es modules.

I'm using it in my projects with no issues.

1 comments

Ah yeah I forgot about decorators - I’ve worked with angular before but clearly I managed to erase all knowledge of it from my brain.

Outside of that I’ve barely seen them used in typescript, they’re not really idiomatic in react projects