The current @types/convict version does not allow you to specify the nullable option for config values.
i.e.
type ConfigOptions {
valueA: string
}
export default createProfiguration<ConfigOptions>({
valueA: {
format: String,
env: 'SOME_CONFIG_VALUE',
default: null,
nullable: true // typescript will complain because v5.2.0 @types/convict definition does not define this property
});
The convict version on the package is ^6.0.0 which would be 6.2.4 if downloaded from npm, but @types/convict is 5.2.0 which should be updated to 6.1.1
The current @types/convict version does not allow you to specify the
nullableoption for config values.i.e.
The convict version on the package is
^6.0.0which would be6.2.4if downloaded from npm, but@types/convictis5.2.0which should be updated to6.1.1