@taiga-ui/tsconfig
v0.234.0
Published
Taiga UI tsconfig
Downloads
7,767
Readme
Shareable TypeScript config for Angular projects
Quick start
$ npm install @taiga-ui/tsconfig -D
Add to your tsconfig.json
:
{
extends: '@taiga-ui/tsconfig',
angularCompilerOptions: {
// override shared angularCompilerOptions
strictTemplates: true,
disableTypeScriptVersionCheck: true,
},
compilerOptions: {
// override shared compilerOptions
outDir: 'dist',
target: 'es2018',
lib: ['es2018'],
typeRoots: ['./node_modules/@types', './node_modules/@taiga-ui/tsconfig'],
types: ['ng-dev-mode'],
},
}
or:
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
ngDevMode && console.log('My log');