![]() ![]() Installationįirst you need to download Sublime Text 3 from ( " target"=_blank). There are a few steps required in order to get up and running with TypeScript in Sublime Text so we will take it from the top, assuming you have nothing installed. Instead, I decided to go use Sublime Text so that I can show you how to set it up. For this post, I could have used Visual Studio to start with, but this would have been too easy. New editors are constantly added and there is nothing stopping your from porting it to your favorite one. ![]() You can code TypeScript within Visual Studio, which offers excellent support and considers it a first class citizen or you can use the editor/IDE of your choice: ( " target"=_blank) ( " target="_blank), (target"=_blank), ( " target"=_blank), ( " target"=_blank) and so on. TypeScript is open source and free as in beer. The generated javascript can run anywhere on any browser and any operating system. In effect, you can use optional static typing, modules, interfaces and classes to write your code and once the code is compiled, the end result is an idiomatic javascript code that resembles the code that you would directly javascript if you wanted to create classes etc without the help of TypeScript. TypeScript, in case you don't know, is a superset of JavaScript that allows you to use Object Oriented principles in order to write code that can be compiled to JavaScript. UPDATED: This post has been rewritten around the official TypeScript plugin Posted in JavaScript, Open Source, TypeScript, Sublime Text Getting started with TypeScript and Sublime Text 04 March 2015
0 Comments
Leave a Reply. |