mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 06:50:19 +00:00
Merge pull request #8047 from Felerius/nconf-add-file-overload
Add overload for nconf
This commit is contained in:
@@ -36,6 +36,7 @@ p = nconf.env();
|
||||
p = nconf.env(opts);
|
||||
|
||||
p = nconf.file(str);
|
||||
p = nconf.file(str, str);
|
||||
p = nconf.file(str, fopts);
|
||||
p = nconf.file(fopts);
|
||||
p = nconf.file({
|
||||
|
||||
Vendored
+1
@@ -25,6 +25,7 @@ declare module "nconf" {
|
||||
export function argv(options?: IOptions): Provider;
|
||||
export function env(options?: IOptions): Provider;
|
||||
export function file(name: string, options?: IFileOptions): Provider;
|
||||
export function file(key: string, name: string): Provider;
|
||||
export function file(options: IFileOptions): Provider;
|
||||
export function use(name: string, options?: IOptions): Provider;
|
||||
export function defaults(options?: IOptions): Provider;
|
||||
|
||||
Reference in New Issue
Block a user