Module typescript

The typescript module contains properties and rules for building TypeScript applications and may be used in combination with the nodejs module to run TypeScript applications directly from Qbs.

General Properties

warningLevelstring1.3"normal"Severity of warnings to emit. The higher the level, the more warnings will be shown. pedantic causes the TypeScript to emit warnings on expressions and declarations with an implied 'any' type.
targetVersionstring1.3undefinedECMAScript target version for generated JavaScript code. undefined uses the TypeScript compiler default.
moduleLoaderstring1.3undefinedIf TypeScript modules are being used, the JavaScript module loading mechanism to use in the generated JavaScript code. undefined indicates modules are not being used. See Compiler Options for a list of possible values.
stripCommentsbool1.3!qbs.debugInformationWhether to remove comments from the generated JavaScript files.
generateDeclarationsbool1.3falseWhether to generate corresponding .d.ts files during compilation; these are TypeScript's equivalent of header files.
generateSourceMapsbool1.3qbs.debugInformationWhether to generate corresponding .map files during compilation.
compilerFlagsstringList1.3undefinedAdditional flags for the TypeScript compiler.
singleFilebool1.3falseWhether to compile all TypeScript source files to a single JavaScript output file. The default is to compile each TypeScript file to a corresponding JavaScript file. This property is incompatible with moduleLoader.
versionstring1.3undefinedThe TypeScript version. Consists of four numbers separated by dots, for instance "".
versionMajorint1.3versionParts[0]The TypeScript major version.
versionMinorint1.3versionParts[1]The TypeScript minor version.
versionPartslist1.3emptyThe TypeScript version as a list. For instance, TypeScript version 1.0 would correspond to a value of [1, 0, 0, 0].
versionPatchint1.3versionParts[2]The TypeScript patch level.
versionBuildint1.3versionParts[3]The fourth TypeScript version number component.
toolchainInstallPathpath1.3undefinedTypeScript installation directory. This should not normally need to be changed provided that tsc is already available by searching the PATH environment variable.
compilerNamestring1.3"tsc"Name of the compiler binary. This should not normally need to be changed.
compilerPathstring1.3compilerNameDirectory where the compiler binary is located. This should not normally need to be changed.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.