---
title: "TypeScript"
description: "TypeScript is a typed superset of JavaScript that adds static types and compiles to plain JavaScript. See how types catch errors before code runs."
url: "https://nodea.io/en/glossary/typescript"
lang: "en"
updated: "2026-07-13"
---

# TypeScript

> TypeScript is a typed superset of JavaScript that adds optional static typing and compiles down to plain JavaScript, catching many errors before runtime.

**TypeScript** is a programming language that builds on [JavaScript](https://nodea.io/en/glossary/javascript) by adding optional static typing. It is a superset of JavaScript, meaning any valid JavaScript is also valid TypeScript, but TypeScript lets developers annotate variables, function parameters and return values with types. These types are checked during development and then removed when the code is compiled down to ordinary JavaScript that browsers and runtimes can execute.

## Why static typing helps

Plain JavaScript is dynamically typed, so many mistakes — passing the wrong kind of value, misspelling a property, calling something that is not a function — only surface at runtime, sometimes in production. TypeScript catches a large share of these errors while you write the code. The type checker flags mismatches immediately, and editors use the type information to offer accurate autocompletion, safe refactoring and inline documentation. On large codebases this dramatically reduces a whole class of bugs and makes the code easier to understand and change.

## TypeScript in practice

Because browsers run only JavaScript, TypeScript relies on a [transpiler](https://nodea.io/en/glossary/transpiler) to convert it into plain JavaScript before deployment; the types serve development and then disappear from the shipped output. TypeScript has become the default choice for many large applications and is deeply supported across the ecosystem — every major [framework](https://nodea.io/en/glossary/framework), including [Vue.js](https://nodea.io/en/glossary/vue-js), offers first-class TypeScript support. The trade-off is some added ceremony: writing type annotations and configuring the compiler takes effort, and small scripts may not justify it. But for substantial, long-lived projects the benefits usually outweigh the cost, which is why TypeScript has grown from a niche option into a mainstream foundation of professional front-end and full-stack development.

### Do browsers run TypeScript directly?

No. Browsers run only JavaScript, so TypeScript is transpiled into plain JavaScript before it ships. The type information exists only during development and is removed from the code that actually runs.

## Related

- [JavaScript](https://nodea.io/en/glossary/javascript)
- [Transpiler](https://nodea.io/en/glossary/transpiler)
- [Framework](https://nodea.io/en/glossary/framework)
- [Vue.js](https://nodea.io/en/glossary/vue-js)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/typescript.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
