1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
.TH TSC "1" "October 2016" "TypeScript compiler" "User Commands"
.SH NAME
tsc \- TypeScript compiler
.SH SYNOPSIS
\fBtsc\fR \fB\-\-outFile\fR file.js file.ts
\fBtsc\fR @args.txt
.SH OPTIONS
.TP
\fB\-\-allowJs\fR
Allow javascript files to be compiled.
.TP
\fB\-\-allowSyntheticDefaultImports\fR
Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
.TP
\fB\-\-allowUnreachableCode\fR
Do not report errors on unreachable code.
.TP
\fB\-\-allowUnusedLabels\fR
Do not report errors on unused labels.
.TP
\fB\-\-baseUrl\fR
Base directory to resolve non\-absolute module names.
.TP
\fB\-d\fR, \fB\-\-declaration\fR
Generates corresponding '.d.ts' file.
.TP
\fB\-\-experimentalDecorators\fR
Enables experimental support for ES7 decorators.
.TP
\fB\-\-forceConsistentCasingInFileNames\fR
Disallow inconsistently\-cased references to the same file.
.TP
\fB\-h\fR, \fB\-\-help\fR
Print this message.
.TP
\fB\-\-init\fR
Initializes a TypeScript project and creates a tsconfig.json file.
.TP
\fB\-\-jsx\fR KIND
Specify JSX code generation: 'preserve' or 'react'
.TP
\fB\-\-lib\fR
Specify library files to be included in the compilation:
\&'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'dom' 'webworker' 'scripthost' 'es2015.core' 'es2015.collection' 'es2015.generator' 'es2015.iterable' 'es2015.promise' 'es2015.proxy' 'es2015.reflect' 'es2015.symbol' 'es2015.symbol.wellknown' 'es2016.array.include' 'es2017.object' 'es2017.sharedmemory'
.TP
\fB\-\-mapRoot\fR LOCATION
Specify the location where debugger should locate map files instead of generated locations.
.TP
\fB\-\-maxNodeModuleJsDepth\fR
The maximum dependency depth to search under node_modules and load JavaScript files
.TP
\fB\-m\fR KIND, \fB\-\-module\fR KIND
Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'
.TP
\fB\-\-moduleResolution\fR
Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre\-1.6).
.TP
\fB\-\-newLine\fR NEWLINE
Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).
.TP
\fB\-\-noEmit\fR
Do not emit outputs.
.TP
\fB\-\-noEmitOnError\fR
Do not emit outputs if any errors were reported.
.TP
\fB\-\-noFallthroughCasesInSwitch\fR
Report errors for fallthrough cases in switch statement.
.TP
\fB\-\-noImplicitAny\fR
Raise error on expressions and declarations with an implied 'any' type.
.TP
\fB\-\-noImplicitReturns\fR
Report error when not all code paths in function return a value.
.TP
\fB\-\-noImplicitThis\fR
Raise error on 'this' expressions with an implied 'any' type.
.TP
\fB\-\-noImplicitUseStrict\fR
Do not emit 'use strict' directives in module output.
.TP
\fB\-\-noUnusedLocals\fR
Report errors on unused locals.
.TP
\fB\-\-noUnusedParameters\fR
Report errors on unused parameters.
.TP
\fB\-\-outDir\fR DIRECTORY
Redirect output structure to the directory.
.TP
\fB\-\-outFile\fR FILE
Concatenate and emit output to single file.
.TP
\fB\-\-preserveConstEnums\fR
Do not erase const enum declarations in generated code.
.TP
\fB\-\-pretty\fR
Stylize errors and messages using color and context. (experimental)
.TP
\fB\-p\fR DIRECTORY, \fB\-\-project\fR DIRECTORY
Compile the project in the given directory.
.TP
\fB\-\-reactNamespace\fR
Specify the object invoked for createElement and __spread when targeting 'react' JSX emit
.TP
\fB\-\-removeComments\fR
Do not emit comments to output.
.TP
\fB\-\-rootDir\fR LOCATION
Specify the root directory of input files. Use to control the output directory structure with \fB\-\-outDir\fR.
.TP
\fB\-\-skipLibCheck\fR
Skip type checking of declaration files.
.TP
\fB\-\-sourceMap\fR
Generates corresponding '.map' file.
.TP
\fB\-\-sourceRoot\fR LOCATION
Specify the location where debugger should locate TypeScript files instead of source locations.
.TP
\fB\-\-strictNullChecks\fR
Enable strict null checks.
.TP
\fB\-\-suppressImplicitAnyIndexErrors\fR
Suppress noImplicitAny errors for indexing objects lacking index signatures.
.TP
\fB\-t\fR VERSION, \fB\-\-target\fR VERSION
Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES2015'
.TP
\fB\-\-traceResolution\fR
Enable tracing of the name resolution process.
.TP
\fB\-\-types\fR
Type declaration files to be included in compilation.
.TP
\fB\-v\fR, \fB\-\-version\fR
Print the compiler's version.
.TP
\fB\-w\fR, \fB\-\-watch\fR
Watch input files.
.TP
@<file>
Insert command line options and files from a file.
|