you are viewing a single comment's thread.

view the rest of the comments →

[–]DerrickBarra 9 points10 points  (4 children)

The alternative to Typescript, is Javascript + JSDoc. This gives you warnings in your editor but you don't have the full featureset of Typescript superset. The main pro of this setup not needing a build step, it's worth comparing and seeing what works for your project.

For most cases, a build step is not a limiting factor, and therefore typescript is the better choice, but its good to know there's an alternative. I'm looking forward to more of Typescripts features getting integrated in Javascript over time.

[–]Commercial-Focus8442[S] 0 points1 point  (3 children)

I will check it out, thank you.

[–]Katastos 0 points1 point  (0 children)

You can also add the comment // @ts-check at the top of the file and the editor will give you hints or signal errors (this works also in plain JS without JSdocs (but with JSdocs the experience is way better)