From 9b5b28fdd41be42ef41d7811ce6a456fe5d6e2c6 Mon Sep 17 00:00:00 2001 From: Alberto Vasquez Date: Tue, 30 Jan 2018 22:46:16 -0500 Subject: [PATCH] [config] Adding type definition for toObject Adding type definition toObject(config?: any): any; --- types/config/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/config/index.d.ts b/types/config/index.d.ts index ea5e5a940a..a18e765012 100644 --- a/types/config/index.d.ts +++ b/types/config/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Roman Korneev // Forrest Bice // James Donald +// Alberto Vasquez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -39,6 +40,9 @@ declare namespace c { // Return the sources for the configurations getConfigSources(): IConfigSource[]; + + // Returns a new deep copy of the current config object, or any part of the config if provided. + toObject(config?: any): any; /** * This allows module developers to attach their configurations onto