Typescript - tsc (official compiler)

About

tsc is the official compiler that transform/compile a typescript file into a javascript script

Management

Install

  • Locally for a project
yarn add typescript  --dev
  • Global
# yarn
yarn global add typescript
# npm
npm install -g typescript

Compilation

  • With the global tsc cli
tsc typescript.ts
ls
typescript.js

  • With the playground
  • In the browser: The typescript compiler is written in Typescript, so you can load the compiler (typescript.js) into your browser (roughly 250 KB).

Option

Compiler options can be set:

The Playground has a GUI

Typescript Playground Conf

API





Discover More
Vscode Source Map Pb
Javascript - Source Map (Map File)

A source map provides a mapping between the original and the build source code. The bundler that combined/minified the source code creates the source map debug session The location coordinates are by...
Javascript - Typescript

TypeScript is a typed superset of JavaScript that compile to plain JavaScript. It adds static typing. JSdocReference See When...
Typescript Playground Conf
TypeScript - tsconfig.json configuration file

The tsconfig.json file specifies: the root directory and the compiler option (configuration properties) where: compilerOptions are the compiler option where: module defines in which module...
Typescript - ( Declaration | Definition ) file ( .d.ts file)

library definition file are known in typesecript/javascript as declaration files or .d.ts files. They describe the library in terms of class, function, type. They are ambient. By default, all visible...
Typescript - Compiler / Transpiler

The compiler transform typescript in javacript official: babel: - ie transpilation without type-check. With Jest: ...
Typescript - Webpack

Install the TypeScript compiler and loader as Dev Dependency
Web - Build Operations / Build Pipeline

This page is the build operation for the web. A build pipeline will: transform (compile) bundle and optimize web code html, css (less, ...) Javascript (Javascript Module, React Jsx,...
Web - Compiler

This page is compiler in the web context. A web compiler is transforming a third language into a web language Java to Javascript: Gwt Typescript to Javascript: Typescript compiler Markdown to...



Share this page:
Follow us:
Task Runner