From a5a990ae455b4827d0919dd640353ec5cf32bf75 Mon Sep 17 00:00:00 2001 From: David Stangl Date: Thu, 11 Feb 2016 16:26:44 +0100 Subject: [PATCH] Adds overload nconf.file(key, name) --- nconf/nconf-tests.ts | 1 + nconf/nconf.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/nconf/nconf-tests.ts b/nconf/nconf-tests.ts index 673c05dca1..3bd043b18c 100644 --- a/nconf/nconf-tests.ts +++ b/nconf/nconf-tests.ts @@ -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({ diff --git a/nconf/nconf.d.ts b/nconf/nconf.d.ts index 8453bfca80..7ea86ce242 100644 --- a/nconf/nconf.d.ts +++ b/nconf/nconf.d.ts @@ -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;