---
# System prepended metadata

title: TypeScript

---

# TypeScript

``` 
npm install -g typescript
npm install --save @types/node
tsc --outdir dist index.ts
```

```json=
// tsconfig.json
{
  "compilerOptions": {
    "module": "commonjs",
    "outDir": "dist",
    "sourceMap": true
  },
  "include": [
    "src/**/*.ts"
  ]
}
```