Skip to content

update @types/convict to allow nullable option #52

Description

@kchow1985

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions