5.4.2[2]
/ 6 March 2024; 52 days ago (6 March 2024)
Typing discipline
Duck, gradual, structural[3]
License
Apache License 2.0
Filename extensions
.ts, .tsx, .mts, .cts
Website
www.typescriptlang.org
Influenced by
C#, F#,[4] Java, JavaScript, ActionScript[5]
Influenced
AtScript, AssemblyScript, ArkTS
TypeScript is a free and open-source high-level programming language developed by Microsoft that adds static typing with optional type annotations to JavaScript. It is designed for the development of large applications and transpiles to JavaScript.[6] Because TypeScript is a superset of JavaScript, all JavaScript programs are syntactically valid TypeScript, but they can fail to type-check for safety reasons.
TypeScript may be used to develop JavaScript applications for both client-side and server-side execution (as with Node.js, Deno or Bun). Multiple options are available for transpilation. The default TypeScript Compiler can be used,[7] or the Babel compiler can be invoked to convert TypeScript to JavaScript.
TypeScript supports definition files that can contain type information of existing JavaScript libraries, much like C++ header files can describe the structure of existing object files. This enables other programs to use the values defined in the files as if they were statically typed TypeScript entities. There are third-party header files for popular libraries such as jQuery, MongoDB, and D3.js. TypeScript headers for the Node.js library modules are also available, allowing development of Node.js programs within TypeScript.[8]
The TypeScript compiler is itself written in TypeScript and compiled to JavaScript. It is licensed under the Apache License 2.0. Anders Hejlsberg, lead architect of C# and creator of Delphi and Turbo Pascal, has worked on the development of TypeScript.[9][10][11][12]
^"TypeScript". CodePlex. Archived from the original on 3 April 2015. Retrieved 26 April 2015.
^"Release TypeScript 5.4 microsoft/TypeScript". 6 March 2024. Retrieved 19 March 2024.
^"Type Compatibility". TypeScript. Retrieved 21 March 2018.
^"The Early History of F#" (PDF). TypeScript was directly influenced by F#: one of the originators of TypeScript was Luke Hoban, who began TypeScript (then called Strada) immediately after working on F# 2.0. Recently he noted the influence of F# on early parts of the TypeScript design [Hoban 2017].
^Nelson, Gary (28 April 2020). "How ActionScript foreshadowed TypeScript". Medium. Retrieved 9 July 2022.
^Bright, Peter (3 October 2012). "Microsoft TypeScript: the JavaScript we need, or a solution looking for a problem?". Ars Technica. Condé Nast. Retrieved 26 April 2015.
^"TypeScript Programming with Visual Studio Code". code.visualstudio.com. Retrieved 12 February 2019.
^"borisyankov/DefinitelyTyped". GitHub. Retrieved 26 April 2015.
^Foley, Mary Jo (1 October 2012). "Microsoft takes the wraps off TypeScript, a superset of JavaScript". ZDNet. CBS Interactive. Retrieved 26 April 2015.
^Somasegar, S. (1 October 2012). "Somasegar's blog". Microsoft. Retrieved 26 April 2015.
^Baxter-Reynolds, Matt (1 October 2012). "Microsoft TypeScript: Can the father of C# save us from the tyranny of JavaScript?". ZDNet. Retrieved 26 April 2015.
^Jackson, Joab (1 October 2012). "Microsoft Augments Javascript for Large-scale Development". CIO. IDG Enterprise. Archived from the original on 17 December 2013. Retrieved 26 April 2015.
TypeScript is a free and open-source high-level programming language developed by Microsoft that adds static typing with optional type annotations to JavaScript...
referred to as typescriptTypeScript, a programming language This disambiguation page lists articles associated with the title Typescript. If an internal...
JavaScript-heavy, so transpilers have been created to convert code written in other languages, which can aid the development process. TypeScript and CoffeeScript...
AssemblyScript is a TypeScript-based programming language that is optimized for, and statically compiled to, WebAssembly (currently using asc, the reference...
AtScript was a proposed JavaScript-based scripting language extending Microsoft's TypeScript and transcompiling to JavaScript. It was introduced in October...
dynamic and determines type compatibility by only that part of a type's structure that is accessed during runtime. The TypeScript, Elm and Python languages...
TypeScript, in turn a superset of JavaScript formerly used in July 2022 HarmonyOS 3.0 version, alongside its evolved percussor, extended TypeScript (eTS)...
implemented as a web application and a mobile application written in TypeScript and JavaScript. Desmos was founded by Eli Luberoff, a math and physics double...
language. In 2012 Hejlsberg announced a new Microsoft project, TypeScript, a superset of JavaScript. Hejlsberg received the 2001 Dr. Dobb's Excellence in Programming...
using the Java programming language only (instead of HTML and JavaScript), TypeScript only, or a combination of both. Development was first started as...
who is best known for creating the Node.js JavaScript runtime as well as the Deno JavaScript/TypeScript runtime. Dahl grew up in San Diego, California...
CardSuit { case clubs = 1, diamonds, hearts, spades } TypeScript adds an 'enum' data type to JavaScript. enum Cardsuit {Clubs, Diamonds, Hearts, Spades};...
Pattern in Swift by Simon Strandgaard The Specification Pattern in TypeScript and JavaScript by Thiago Delgado Pinto specification pattern in flash actionscript...
builders. The product is divided into a front end and back end, written in TypeScript and Go, respectively. As a visualization tool, Grafana can be used as...
Gothic typeface Gothic script, typeface, letters, text or font may refer to: Blackletter (Gothic minuscule, 'Old English') an ornate calligraphic or typographical...
characterized using intersection types. TypeScript supports intersection types, improving expressiveness of the type system and reducing potential class...
NativeScript apps are built using JavaScript, or by using any programming language that transpiles to JavaScript, such as TypeScript. NativeScript supports...
apples 4 puts [format "I have %d apples." $apples] As of version 1.4, TypeScript supports string interpolation using backticks ``. Here is an example:...
0 in 2007 and is currently supported in languages such as C#, Swift, TypeScript, Ruby, Kotlin, Rust and others. There is currently no common naming convention...
GitHub on 29 June 2021, and works best for users coding in Python, JavaScript, TypeScript, Ruby, and Go. In March 2023 GitHub announced plans for "Copilot X"...
version 3. A part of this release was an internal rewrite from TypeScript back to JavaScript, with JSDoc annotations. This was met with a confusion from...
JavaScript to CoffeeScript, however it was migrated to TypeScript in 2017. GitHub's internal style guide once said "write new JS in CoffeeScript", though...
knows InScripttyping in one script can type in any other Indic script using dictation even without knowledge of that script. The first InScript keyboard...
Scala, Swift and TypeScript. C++ features type aliasing using the using keyword. using Distance = int; C# since version 12 features type aliasing using...