TypeScript is a typed superset of JavaScript that transpiles to plain JavaScript. It adds optional types to JavaScript. This tag is for questions specific to TypeScript. It is not used for general JavaScript questions.
TypeScript is a typed superset of javascript that transpiles to plain JavaScript. It adds optional types, interfaces, and modules to JavaScript. It was developed by Microsoft and is open source.
- TypeScript offers modules, and interfaces to help developers build robust components.
- TypeScript types let developers define interfaces between software components and gain insight into the behavior of existing JavaScript libraries.
- TypeScript starts from the syntax and semantics millions of JavaScript developers know today.
- With TypeScript, developers can use existing JavaScript code, incorporate popular JavaScript libraries, and be called from other JavaScript code.
- TypeScript is transpiled to JavaScript code that runs on any browser, in node.js, or in any other ES3-compatible environment.
- TypeScript as a language extension adds (amongst others) the following features:
- Type annotations and compile-time type checking
- Namespaces
- Interfaces
- Enums (to define a set of named constants)
- Generics (classes, types, and functions that can work over a variety of types)
Useful Links
- TypeScript Home: Main landing page for TypeScript Language.
- TypeScript-React-Starter: Get started with TypeScript and React!
- TypeScript Playground: An online TypeScript editor by Microsoft.
- TypeScript Samples: Code samples and demos of complete applications written in TypeScript
- TypeScript GitHub Project: Issue tracker and source code
- TypeScript Blog: Official TypeScript Blog
- TypeScript Roadmap: The planned future of TypeScript
- TypeScript Handbook: User-oriented documentation for TypeScript
- TypeScript Deep Dive: An open-source book on TypeScript targeted at beginners - advanced developers.
- TypeScript Twitter: Official TypeScript Twitter account
Videos
- Anders Hejlsberg: Introducing TypeScript
- Anders Hejlsberg, Steve Lucco, and Luke Hoban: Inside TypeScript
- Anders Hejlsberg, Steve Lucco: TypeScript: Application-Scale JavaScript
- Anders Hejlsberg: TypeScript Q&A
- Anders Hejlsberg, John Papa: Five Things About TypeScript
- Anders Hejlsberg, John Papa: Why TypeScript is for You