mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-03 22:44:56 +08:00
[convict] Config.get() doesn't require a parameter
This commit is contained in:
@@ -129,6 +129,7 @@ if (conf.has('key')) {
|
||||
});
|
||||
}
|
||||
|
||||
conf.get();
|
||||
conf.getSchema();
|
||||
conf.getProperties();
|
||||
conf.getSchemaString();
|
||||
|
||||
2
types/convict/index.d.ts
vendored
2
types/convict/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user