Skip to main content

TypeScript

TypeScript is an open source syntactic superset of javascript that compiles to JS. Allows to use optional static typing as well as support for the latest evolving features of ES2015.

TypeScript offers type annotations which provide optional, static type checking at compile time. Since it is a superset of JavaScript, all JavaScript is syntactically valid TypeScript.

  • Static Typing (vars, functions, etc)

  • Tooling support with IntelliSense

  • Modules, Decorators, Classes

  • Compiles into clean JS Code

  • Predictability

  • Autocompletion

  • Protection

In addition to static type analysis, TypeScript also adds the following features to JavaScript:

https://www.freecodecamp.org/news/learn-typescript-with-this-crash-course

https://www.typescriptlang.org/docs/handbook/intro.html

https://github.com/type-challenges/type-challenges

Why Program in TypeScript

https://www.freecodecamp.org/news/how-to-code-your-react-app-with-typescript

https://www.toptal.com/typescript/typescript-vs-javascript-guide

https://www.freecodecamp.org/news/build-strongly-typed-polymorphic-components-with-react-and-typescript

TypeScript 5.2's New Keyword: 'using' | Total TypeScript