@types/config

  • Version 0.0.39
  • Published
  • 7.15 kB
  • No dependencies
  • MIT license

Install

npm i @types/config
yarn add @types/config
pnpm add @types/config

Overview

TypeScript definitions for node-config

Index

Variables

variable c

var c: c.IConfig;

    Interfaces

    interface IConfig

    interface IConfig {}

      property util

      util: IUtil;

        method get

        get: <T>(setting: string) => T;

          method has

          has: (setting: string) => boolean;

            interface IConfigSource

            interface IConfigSource {}

              property name

              name: string;

                property original

                original?: string | undefined;

                  property parsed

                  parsed: any;

                    interface IUtil

                    interface IUtil {}

                      method cloneDeep

                      cloneDeep: (copyFrom: any, depth?: number) => any;

                        method diffDeep

                        diffDeep: (object1: any, object2: any, depth?: number) => any;

                          method equalsDeep

                          equalsDeep: (object1: any, object2: any, dept?: number) => boolean;

                            method extendDeep

                            extendDeep: (mergeInto: any, mergeFrom: any, depth?: number) => any;

                              method getConfigSources

                              getConfigSources: () => IConfigSource[];

                                method getEnv

                                getEnv: (varName: string) => string;

                                  method loadFileConfigs

                                  loadFileConfigs: (configDir?: string) => any;

                                    method makeHidden

                                    makeHidden: (object: any, propertyName: string, propertyValue?: string) => any;

                                      method makeImmutable

                                      makeImmutable: (
                                      object: any,
                                      propertyName?: string,
                                      propertyValue?: string
                                      ) => any;

                                        method setModuleDefaults

                                        setModuleDefaults: (moduleName: string, defaults: any) => any;
                                        • This allows module developers to attach their configurations onto the 6 years agoInitial 0.4 checkin default configuration object so they can be configured by the consumers of the module.

                                        method toObject

                                        toObject: (config?: any) => any;

                                          Package Files (1)

                                          Dependencies (0)

                                          No dependencies.

                                          Dev Dependencies (0)

                                          No dev dependencies.

                                          Peer Dependencies (0)

                                          No peer dependencies.

                                          Badge

                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/config.

                                          • Markdown
                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/config)
                                          • HTML
                                            <a href="https://www.jsdocs.io/package/@types/config"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>