diff --git a/types/convict/convict-tests.ts b/types/convict/convict-tests.ts index 0451954ca1..3bc0b4565f 100644 --- a/types/convict/convict-tests.ts +++ b/types/convict/convict-tests.ts @@ -129,6 +129,7 @@ if (conf.has('key')) { }); } +conf.get(); conf.getSchema(); conf.getProperties(); conf.getSchemaString(); diff --git a/types/convict/index.d.ts b/types/convict/index.d.ts index ebe5d21490..395d540875 100644 --- a/types/convict/index.d.ts +++ b/types/convict/index.d.ts @@ -53,7 +53,7 @@ declare namespace convict { * @returns the current value of the name property. name can use dot * notation to reference nested values */ - get(name: string): any; + get(name?: string): any; /** * @returns the default value of the name property. name can use dot * notation to reference nested values