All apps/TypeScript compiler (tsc)

TypeScript compiler (tsc)

tsc

The TypeScript compiler, which type-checks and compiles TypeScript to JavaScript.

Runs as tsc|macOS, Linux, Windows|www.typescriptlang.org

Command form

ai-draft · 3 tasks · 12 fields

Type-check or compile a project or files. Only common compiler flags are here; other options belong in tsconfig.json. Note a project cannot be combined with input files.

Opens the form; the finished command lands at your prompt, unrun
otty gui tsc
Compile TypeScriptExample values, fixed in this page — nothing here reaches a terminal
Basic
Project (tsconfig)
any
Type-check only
--noEmit
Advanced
Skip lib check
--skipLibCheck
TasksEach one presets the form for one job
Type-check project
projectno_emitskip_lib_check
Compile project
projectout_dirsource_mapdeclaration
Watch project
projectwatchno_emit
ParametersOnly these flags are editable in the form
Input files
Leave empty to use the project config; cannot be combined with --project.
path · positional 0 · repeatable
Project (tsconfig)
path
--project
Type-check only
boolean
--noEmit
Watch mode
boolean
--watch
Create tsconfig.json
boolean
--init
Target
string
--targetES5ES2015ES2020ESNext
Module
string
--moduleCommonJSESNextUMDAMD
Output directory
path
--outDir
Strict checks
boolean
--strict
Emit .d.ts
boolean
--declaration
Source maps
boolean
--sourceMap
Skip lib check
boolean
--skipLibCheck
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed tsc against its version. A form that does not match your version is not offered.