TypeScript is an extended version of JavaScript with added type syntax for better type checking and auto-completion during editing. While TypeScript code must be converted to JavaScript for execution, modern runtimes like Node.js and Deno can run TypeScript directly. Transpiling refers to the conversion process, which can be controlled via the tsconfig.json configuration file. TypeScript supports bundling for web applications and integrates well with various tools and IDEs, including Visual Studio Code. Libraries are often published with type declaration files to enhance compatibility with both JavaScript and TypeScript projects.

10m read timeFrom 2ality.com
Post cover image
Table of contents
TypeScript is JavaScript plus type syntax #Ways of running TypeScript code #Publishing a library package to the npm registry #DefinitelyTyped: a repository with types for type-less npm packages #Compiling TypeScript with tools other than tsc #JSR – the JavaScript registry #Editing TypeScript #Type-checking JavaScript files #Further reading #

Sort: