Man page - tsc(1)
Packages contains this manual
apt-get install node-typescript
Manual
TSC
NAMESYNOPSIS
OPTIONS
NAME
tsc - TypeScript compiler
SYNOPSIS
tsc --outFile file.js file.ts
tsc @args.txt
OPTIONS
--allowJs
Allow javascript files to be compiled.
--allowSyntheticDefaultImports
Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
--allowUnreachableCode
Do not report errors on unreachable code.
--allowUnusedLabels
Do not report errors on unused labels.
--baseUrl
Base directory to resolve non-absolute module names.
-d , --declaration
Generates corresponding â.d.tsâ file.
--experimentalDecorators
Enables experimental support for ES7 decorators.
--forceConsistentCasingInFileNames
Disallow inconsistently-cased references to the same file.
-h , --help
Print this message.
|
--init |
Initializes a TypeScript project and creates a tsconfig.json file. |
--jsx KIND
Specify JSX code generation: âpreserveâ or âreactâ
|
--lib |
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â |
--mapRoot LOCATION
Specify the location where debugger should locate map files instead of generated locations.
--maxNodeModuleJsDepth
The maximum dependency depth to search under node_modules and load JavaScript files
-m KIND, --module KIND
Specify module code generation: âcommonjsâ, âamdâ, âsystemâ, âumdâ or âes2015â
--moduleResolution
Specify module resolution strategy: ânodeâ (Node.js) or âclassicâ (TypeScript pre-1.6).
--newLine NEWLINE
Specify the end of line sequence to be used when emitting files: âCRLFâ (dos) or âLFâ (unix).
--noEmit
Do not emit outputs.
--noEmitOnError
Do not emit outputs if any errors were reported.
--noFallthroughCasesInSwitch
Report errors for fallthrough cases in switch statement.
--noImplicitAny
Raise error on expressions and declarations with an implied âanyâ type.
--noImplicitReturns
Report error when not all code paths in function return a value.
--noImplicitThis
Raise error on âthisâ expressions with an implied âanyâ type.
--noImplicitUseStrict
Do not emit âuse strictâ directives in module output.
--noUnusedLocals
Report errors on unused locals.
--noUnusedParameters
Report errors on unused parameters.
--outDir DIRECTORY
Redirect output structure to the directory.
--outFile FILE
Concatenate and emit output to single file.
--preserveConstEnums
Do not erase const enum declarations in generated code.
--pretty
Stylize errors and messages using color and context. (experimental)
-p DIRECTORY, --project DIRECTORY
Compile the project in the given directory.
--reactNamespace
Specify the object invoked for createElement and __spread when targeting âreactâ JSX emit
--removeComments
Do not emit comments to output.
--rootDir LOCATION
Specify the root directory of input files. Use to control the output directory structure with --outDir .
--skipLibCheck
Skip type checking of declaration files.
--sourceMap
Generates corresponding â.mapâ file.
--sourceRoot LOCATION
Specify the location where debugger should locate TypeScript files instead of source locations.
--strictNullChecks
Enable strict null checks.
--suppressImplicitAnyIndexErrors
Suppress noImplicitAny errors for indexing objects lacking index signatures.
-t VERSION, --target VERSION
Specify ECMAScript target version: âES3â (default), âES5â, or âES2015â
--traceResolution
Enable tracing of the name resolution process.
--types
Type declaration files to be included in compilation.
-v , --version
Print the compilerâs version.
-w , --watch
Watch input files.
@<file>
Insert command line options and files from a file.