From 752bb5aaeed58cd90decdac809a5b490dd8bff44 Mon Sep 17 00:00:00 2001 From: Eli Young Date: Mon, 5 Jun 2017 13:59:23 -0700 Subject: [PATCH] [convict] Config.get() doesn't require a parameter --- types/convict/convict-tests.ts | 1 + types/convict/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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