What is TypeScript?
But what does this stuff do? Without strongly typed variables & objects, you frequently don’t find out if there are errors until you run your tests. Many of these same issues could have been caught by a compiler, editor or IDE.
But catching your possible coding errors isn’t the only reason why it’s helpful or why I like it. When you are developing the IDE / editor you’re using can use autocomplete / IntelliSense just like you get in strongly typed languages. It can also give you hints for the return type of methods and functions as well as tell you what parameters the function takes as well and their types.
When / Where do I use TypeScript?
tsc.exe command line compiler or I let my editor compile it for me.
How easy is it to get into TypeScript? In my experience it’s easy to listen to a presentation or read an article, but once you go try it within a project, you start to bump your head on some low ceilings. My recommendation: don’t try it out for just a few hours… you need to make an investment and say you’ll stick with it for a solid week before you bail on it. Make sure you try to do everything the “TypeScript-way” to really get a good feel for it. Once I did that, I had a much better grasp of the language.