Programming language · 2012
TypeScript
Programming language, superset of JavaScript that compiles to JavaScript.
Official site ›What is TypeScript written in?
What TypeScript is used for
TypeScript is JavaScript with static types, used to build large, maintainable front-end and back-end applications where the type checker catches bugs before runtime. It is now the default choice for most serious React, Angular, and Node.js projects.
Notable software: VS Code, Angular, and large parts of the tooling at Microsoft, Slack, and Airbnb are written in TypeScript.
About TypeScript
TypeScript is a programming language, superset of JavaScript that compiles to JavaScript. It is a statically typed and garbage-collected language that compiles (transpiles) into another language to run. It supports object-oriented, functional, and imperative programming. Transpiling means the compiler emits source in another high-level language rather than machine code, so the output then runs on that language's runtime.
TypeScript first appeared in 2012 and was designed by Microsoft, Anders Hejlsberg, and Steven Lucco at Microsoft. Today TypeScript is one of the most widely used programming languages in the world.
TypeScript in the language family tree
TypeScript drew on ideas from JavaScript, C#, and Haskell and went on to influence Dart and Angular.
Sources: Wikipedia · Wikidata · Official site
Quick Facts
- Short answer
- tsc is written in TypeScript
- Created by
- Anders Hejlsberg, Microsoft, 2012
- Output
- Transpiles to JavaScript
- Runtime
- None of its own, runs on JS engines
TypeScript transpiles, it does not run
TypeScript is a typed superset of JavaScript. The compiler checks types and then strips them away, emitting plain JavaScript. There is no TypeScript virtual machine: the generated JavaScript executes on whatever engine the target uses, V8 in Node.js and Chrome, JavaScriptCore in Safari.
tsc is itself written in TypeScript and compiled with a previous version of tsc, making TypeScript self-hosting in the same sense as Rust or Go.
Frequently Asked Questions
Evidence Sources
- https://www.typescriptlang.org/
- https://devblogs.microsoft.com/typescript/typescript-native-port/
- https://github.com/microsoft/TypeScript
- https://en.wikipedia.org/wiki/TypeScript
- https://en.wikipedia.org/wiki/Dart_(programming_language)
- https://en.wikipedia.org/wiki/Angular_(web_framework)
- https://angular.io/
- TypeScript on Wikidata (Q978185)