mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Adds overload nconf.file(key, name)
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({
|
||||
|
||||
1
nconf/nconf.d.ts
vendored
1
nconf/nconf.d.ts
vendored
@@ -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