What is TypeScript?
Who created the JavaScript-compatible programming language, and what is it used for?


Developed by Microsoft, TypeScript is an open source programming language that serves as a superset of JavaScript, and is predominately used to write large applications.
Conceptualised just under 10 years ago, Typescript was born from a need among Microsoft developers' ranks to create a form of JavaScript that was much easier to write with, more maintainable, and could handle expanding loads.
The first public version was released in 2012, and support has since been incorporated into a host of applications, for example, TypeScript for Visual Studio. But its open source nature means the underlying source code is available for developers to utilise and build on via GitHub.
Who created TypeScript?
This programming language is the culmination of years' work by Microsoft developers who grew frustrated at the lack of necessary features within JavaScript to productively write and maintain large-scale applications.
"JavaScript was never really designed to be a programming language for big applications. It's a scripting language," explained Microsoft fellow and TypeScript founder Anders Hejlsberg, introducing the programming language in 2012. "It doesn't have static typing, but more importantly perhaps it lacks some of the structuring mechanisms you need in larger applications, like classes and modules, and perhaps interfaces."
When they were trying to see where they could go next with javascript development tools, he continued, Microsoft developers started learning that many people in the industry who encountered this issue turned to Google's GWT, or the open-source C#-based ScriptShark, integrated with software such as Microsoft Visual Studio.
But the issue with this is that the language shifted away from JavaScript, and was therefore difficult to maintain. Their solution was to strengthen JavaScript and create a fully-compatible language, TypeScript, which was made freely available to developers.
Get the ITPro daily newsletter
Sign up today and you will receive a free copy of our Future Focus 2025 report - the leading guidance on AI, cybersecurity and other IT challenges as per 700+ senior executives
Typescript vs JavaScript
TypeScript is known as a superset of JavaScript, and is fully compatible with this, but it still retains a level of independence as a language. In other words, a programme written in JavaScript is also a valid TypeScript programme, and such an app can seamlessly fuse with the former language too.
TypeScript wasn't created as a replacement for JavaScript, and is essentially a form of the ECMAScript-based programming language that scales. It's an escalation of the language, or an expansion, that was designed to smooth out some of the trickiest aspects of coding for JavaScript developers. It's especially important for handling large-scale applications, and because it's a superset of JavaScript, you can merge the two languages without the TypeScript compiler flagging errors in the code. This also means you can exploit a host of additional features such as classes, arrow functions,and modules without departing the JavaScript ecosystem.
One of the biggest differences in the way the two languages function is that TypeScript identifies errors in the code as you type, which is known as static typing. Dynamic typing, on the other hand, means it's not possible to identify a mistake until the code is executed. This could, in turn, lead to minor errors being buried in the larger codebase.
Several integrated development environments (IDE), meanwhile, allow support for TypeScript. These include platforms like VS Doe, ATom Sublime, and Microsoft Visual Studio. Which system you opt for is, however, often a matter of personal preference and any particular project's needs.

Keumars Afifi-Sabet is a writer and editor that specialises in public sector, cyber security, and cloud computing. He first joined ITPro as a staff writer in April 2018 and eventually became its Features Editor. Although a regular contributor to other tech sites in the past, these days you will find Keumars on LiveScience, where he runs its Technology section.
-
Bigger salaries, more burnout: Is the CISO role in crisis?
In-depth CISOs are more stressed than ever before – but why is this and what can be done?
By Kate O'Flaherty Published
-
Cheap cyber crime kits can be bought on the dark web for less than $25
News Research from NordVPN shows phishing kits are now widely available on the dark web and via messaging apps like Telegram, and are often selling for less than $25.
By Emma Woollacott Published
-
Oracle Java pricing concerns could spark a developer exodus
News Oracle Java users have raised concerns over pricing, with many considering switching to open source options.
By Solomon Klappholz Published
-
Python just brushed past JavaScript to become the most popular programming language on GitHub – and a key factor is that AI developers love it
News The meteoric rise of Python shows no sign of stopping
By Nicole Kobie Published
-
JupyterLab review: A powerful tool for documenting your data science journey
Reviews Literate programming toolkit takes dynamic code documents to new heights
By Danny Bradbury Published
-
Microsoft continues its Rust mission with new kernel features
News The latest critical feature comes as a "small trial" to select Windows Insiders
By Connor Jones Published
-
Report: Regulatory and monetary incentives needed to adopt safer programming languages
News Companies have been urged to create plans on how they intend to get rid of memory-unsafe code in their products
By Zach Marzouk Published
-
Microsoft Azure CTO hails 'most loved' Rust as the successor to C and C++
News Rust is a newer programming language that developers enjoy using and learning, and it's being adopted far across the industry, too
By Connor Jones Published
-
Programming with Python: Time to upgrade to fancy ANSI
Opinion Wordle inspires Dick to reinvent his 1980s ASCII toolkit for the 2020s, but this time he doubles down with ANSI
By Dick Pountain Published
-
The best Python test frameworks
Best Make your Python code shine with these testing tools
By Danny Bradbury Published