node_modules/@itgorillaz/configify/src/configify.module.ts:235:15 - error TS2769: No overload matches this call.
Overload 1 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
Argument of type 'string | string[] | undefined' is not assignable to parameter of type 'ConcatArray<never>'.
Type 'undefined' is not assignable to type 'ConcatArray<never>'.
Overload 2 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
Argument of type 'string | string[] | undefined' is not assignable to parameter of type 'ConcatArray<never>'.
Type 'undefined' is not assignable to type 'ConcatArray<never>'.
235 .concat(path, this.DEFAULT_CONFIG_FILES)
~~~~
node_modules/@itgorillaz/configify/src/configuration/configuration.registry.ts:22:24 - error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'.
22 this.registry.push(type);
~~~~
node_modules/@itgorillaz/configify/src/configuration/parsers/configuration-parser.factory.ts:30:12 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ env: DotEnvConfigurationParser; yml: YamlConfigurationParser; yaml: YamlConfigurationParser; json: JsonConfigurationParser; }'.
No index signature with a parameter of type 'string' was found on type '{ env: DotEnvConfigurationParser; yml: YamlConfigurationParser; yaml: YamlConfigurationParser; json: JsonConfigurationParser; }'.
30 return this.parsers[ext];
~~~~~~~~~~~~~~~~~
node_modules/@itgorillaz/configify/src/configuration/parsers/configuration-parser.factory.ts:51:5 - error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
51 return file.split('.').pop();
~~~~~~
node_modules/@itgorillaz/configify/src/configuration/parsers/yaml-configuration.parser.ts:2:23 - error TS7016: Could not find a declaration file for module 'js-yaml'. '/home/safal/work/templates/nestjs/template/node_modules/js-yaml/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/js-yaml` if it exists or add a new declaration (.d.ts) file containing `declare module 'js-yaml';`
2 import * as yaml from 'js-yaml';
~~~~~~~~~
node_modules/@itgorillaz/configify/src/configuration/resolvers/aws/parameter-store-configuration.resolver.ts:39:46 - error TS18048: 'e.error' is possibly 'undefined'.
39 .map((e) => `${e.key}: ${e.id} - ${e.error.message}`)
~~~~~~~
node_modules/@itgorillaz/configify/src/configuration/resolvers/aws/secrets-manager-configuration.resolver.ts:42:46 - error TS18048: 'e.error' is possibly 'undefined'.
42 .map((e) => `${e.key}: ${e.id} - ${e.error.message}`)
~~~~~~~
node_modules/@itgorillaz/configify/src/interpolation/variables.ts:44:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
No index signature with a parameter of type 'string' was found on type '{}'.
44 expanded[key] =
~~~~~~~~~~~~~
Short description
Currently this package cannot be used when we use strict typescript configuration.
Steps to reproduce
nest new foo --strict
(Note the--strict
argument)npm install --save @itgorillaz/configify
ConfigifyModule
in the imports array inapp.module.ts
:npm run start:dev
We get the following error:
System information
package.json
contents: