Ir al contenido
Español

Config

Esta página aún no está disponible en tu idioma.

Defined in: src/config/Config.ts:47

atPath(path): Config

Defined in: src/config/Config.ts:219

Wrap the tree under the given path: {a:{b:1}}.atPath(“x.y”) → {x:{y:{a:{b:1}}}}.

string

Config


getBoolean(path): boolean

Defined in: src/config/Config.ts:150

string

boolean


getBytes(path): number

Defined in: src/config/Config.ts:170

Byte count.

string

number


getConfig(path): Config

Defined in: src/config/Config.ts:199

string

Config


getDuration(path): number

Defined in: src/config/Config.ts:162

Duration in milliseconds.

string

number


getInt(path): number

Defined in: src/config/Config.ts:137

string

number


getList(path): ConfigValue[]

Defined in: src/config/Config.ts:187

string

ConfigValue[]


getNumber(path): number

Defined in: src/config/Config.ts:143

string

number


getObject(path): ConfigObject

Defined in: src/config/Config.ts:193

string

ConfigObject


getString(path): string

Defined in: src/config/Config.ts:130

string

string


getStringList(path): string[]

Defined in: src/config/Config.ts:177

string

string[]


hasPath(path): boolean

Defined in: src/config/Config.ts:126

string

boolean


merge(overlay): Config

Defined in: src/config/Config.ts:214

Inverse of withFallback — layer overlay on top.

Config

Config


toJSON(): ConfigObject

Defined in: src/config/Config.ts:238

ConfigObject


withFallback(other): Config

Defined in: src/config/Config.ts:209

Merge other underneath this config — i.e. values defined here win, keys that only exist in other are filled in.

Config

Config


static empty(): Config

Defined in: src/config/Config.ts:63

Config


static fromObject(obj): Config

Defined in: src/config/Config.ts:75

unknown

Config


static load(options?): Config

Defined in: src/config/Config.ts:94

Load the standard config chain. Precedence (highest first):

  1. overrides passed in code.
  2. application.conf resolved via appConfPath → process.env.ACTOR_TS_CONFIG → ./application.conf in CWD.
  3. reference.conf bundled with this package.

Environment variables are consulted during substitution resolution (inside each parse step), not as a separate layer.

LoadOptions = {}

Config


static loadReference(): Config

Defined in: src/config/Config.ts:118

Config


static parseFile(path): Config

Defined in: src/config/Config.ts:70

string

Config


static parseString(source): Config

Defined in: src/config/Config.ts:65

string

Config