mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #23300 from albertovasquez/patch-2
[config] Adding type definition for toObject
This commit is contained in:
commit
0921b3fa7f
4
types/config/index.d.ts
vendored
4
types/config/index.d.ts
vendored
@ -3,6 +3,7 @@
|
||||
// Definitions by: Roman Korneev <https://github.com/RWander>
|
||||
// Forrest Bice <https://github.com/forrestbice>
|
||||
// James Donald <https://github.com/jndonald3>
|
||||
// Alberto Vasquez <https://github.com/albertovasquez>
|
||||
// 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user