0.1.0 • Published 8 months ago

@angular-ru/type-declarations v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Additional utility type declarations to improve development experience

image image

Install

$ npm install @angular-ru/type-declarations -D

Edit file tsconfig.json in the root of your project or in the subproject where you want to add these types to.

{
    extends: './tsconfig.base.json',
    compilerOptions: {
        types: ['../@angular-ru/type-declarations']
    }
}

Or just inherit your base tsconfig from our @angular-ru/typescript (don't forget to read notes below).

Note: the package path is relative to node_modules unless typeRoots is specified in your tsconfig. If specified, the path will be resolved relative to the values of this parameter.

Note: if you inherit tsconfig and specify the types field, it will be completely overwritten, so you will need to additionally re-specify this package in the array.

For example, you inherited tsconfig to make configuration for jest. You need to specify jest in the types array. In this case, our package will not be taken into account. You need to specify it again:

tsconfig.spec.json:

{
    extends: './tsconfig.json',
    compilerOptions: {
        types: ['jest', '../@angular-ru/type-declarations']
    }
}
0.1.0

8 months ago

0.0.1

8 months ago