This is an old version, saved 4 Dec 2026, 18:24 by TechWritereditor. See the current version.

TypeScript

TypeScript is a programming language that adds static type checking to JavaScript.[1] It is a superset of JavaScript, meaning every JavaScript program is also a valid TypeScript program, and its code runs exactly as JavaScript does.[1]

Contents
  1. History
  2. How it works
  3. See also
  4. References

History

Microsoft unveiled TypeScript as an early preview on 1 October 2012, describing it as a way of "getting JavaScript development to scale".[2] It was co-developed by Anders Hejlsberg, who had earlier created Turbo Pascal and was lead architect of the C# language, together with Steve Lucco and Luke Hoban.[3] From the start the compiler was released as Open-source software under the Apache 2.0 licence.[2][3] TypeScript 1.0 followed on 2 April 2014, shipping as part of Visual Studio 2013, and the team then began accepting outside contributions to the compiler.[4]

In March 2025 Microsoft announced a native port of the compiler and tools to Go (programming language), promising to cut most build times by about ten times; the new code was to ship as TypeScript 7.0.[5] TypeScript 7.0 became the first stable release built on the Go-based compiler in 2026.[6] By GitHub's count of contributors, TypeScript became the most used language on the platform in August 2025, overtaking both Python and JavaScript.[7]

How it works

Programmers can annotate code with types, for example stating that a function's parameters must be numbers, and the compiler reports an error if a string is passed instead.[1] Types are optional, and in many cases the compiler can infer them by itself.[2] This catches many mistakes at compile time that plain JavaScript would only reveal when the program runs.[1] When the code is compiled, the type annotations are removed ("erased"), so the output is ordinary JavaScript that runs in any browser, on any host and on any operating system.[1][2] Type declaration files describe the types used by existing JavaScript libraries, letting editors offer code completion and error checking without changing those libraries.[2]

See also

References

  1. ^ TypeScript (glossary). MDN Web Docs (Mozilla). developer.mozilla.org
  2. ^ TypeScript: JavaScript Development at Application Scale. Microsoft. 2012-10-01. learn.microsoft.com
  3. ^ Microsoft Previews New JavaScript-Like Programming Language TypeScript. TechCrunch. 2012-10-01. techcrunch.com
  4. ^ Announcing TypeScript 1.0. Microsoft TypeScript blog. 2014-04-02. devblogs.microsoft.com
  5. ^ A 10x Faster TypeScript. Microsoft TypeScript blog. 2025-03-11. devblogs.microsoft.com
  6. ^ Speedier type checks in TypeScript 7.0 as first stable Go release ships. The Register. 2026-07-09. theregister.com
  7. ^ Octoverse: A new developer joins GitHub every second as AI leads TypeScript to #1. GitHub. 2025-10-28. github.blog