From 86aefa7ce6d7bcba833b04afeb810cfbd5869367 Mon Sep 17 00:00:00 2001 From: Louise Bicker Caarten Date: Wed, 4 Oct 2017 15:27:59 +0200 Subject: [PATCH] Allow Filepath (String) To Json Schema In Convict Constructor (#20274) --- types/convict/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/convict/index.d.ts b/types/convict/index.d.ts index d7904ec5d6..5aac427dd0 100644 --- a/types/convict/index.d.ts +++ b/types/convict/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for convict 4.0 +// Type definitions for convict 4.1 // Project: https://github.com/mozilla/node-convict // Definitions by: Wim Looman // Vesa Poikajärvi @@ -118,7 +118,7 @@ declare namespace convict { interface convict { addFormat(format: convict.Format): void; addFormats(formats: { [name: string]: convict.Format }): void; - (config: convict.Schema): convict.Config; + (config: convict.Schema | string): convict.Config; } declare var convict: convict; export = convict;