What is TypeScript written in?
The TypeScript compiler is written in TypeScript (well-documented). It has been rewritten in Go. TypeScript is self-hosting.
Relationship Graph
All directly connected languages. Click any node to navigate to its page.
Compiler Implementation
| Language | Confidence | Notes | Source |
|---|---|---|---|
| TypeScript | 98% | tsc is self-hosting, written in TypeScript | Source |
Rewritten In
| Language | Confidence | Notes | Source |
|---|---|---|---|
| Go | 95% | TypeScript 7.0 compiler being rewritten in Go for 10x speedup | Source |
Influenced By
- JavaScript — TypeScript is a typed superset of JavaScript
- C# — TypeScript designed by Anders Hejlsberg, who created C#
- Haskell — TypeScript's algebraic types influenced by Haskell/ML
Languages TypeScript Influenced
- Angular — Angular 2+ written in TypeScript
- Dart — Dart and TypeScript are contemporaries in typed JS space
Frequently Asked Questions
What language is TypeScript written in?
TypeScript is primarily implemented in TypeScript. See the implementation section above for details and source references.
What languages influenced TypeScript?
TypeScript was influenced by JavaScript, C#, Haskell among others. See the influence section above for the full list.
Which languages did TypeScript influence?
TypeScript influenced Dart, Angular among others.
Is TypeScript self-hosting?
Yes, TypeScript is self-hosting — its compiler can compile itself.
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/
Related Languages
Discover More
What is TypeScript written in?
What are programming languages written in?
TypeScript in the language family tree
Interactive programming language graph
Is TypeScript self-hosting?
Compiler bootstrapping explained
Languages TypeScript influenced: Angular
Languages TypeScript influenced: Dart
Languages that influenced TypeScript: JavaScript
Languages that influenced TypeScript: C#