🍃 Leaf

TypeScript

Installation

npm i -g typescript

Usage

tsc [file] [option]
tsc <input-file> <output-file> # Ignores tsconfig.json

Options:

More at tsc CLI Options (typescriptlang.org).

Configuration

// tsconfig.json e.g.:
{
  "compilerOptions": {
    "module": "ES6",
    "noImplicitAny": true,
    "outDir": "dist",
    "removeComments": true,
    "strict": true,
    "target": "ES6"
  },
  "files": [
    // ...
  ]
}

More at (typescriptlang.org):