Class Config
Less than 1 minute
Class Config
Declared in packages/sdk/config/dist/types/src/config.d.ts:36
Global configuration object. NOTE: Config objects are immutable.
Constructors
constructor([config], objects)
Creates an immutable instance.
Returns: Config
Arguments:
config: Config
objects: Config[]
Properties
values
Type: Config
Returns an immutable config JSON object.
Methods
get(key, [defaultValue])
Returns the given config property.
Returns: DeepIndex<Config, ParseKey<K>, undefined>
Arguments:
key: K
defaultValue: DeepIndex<Config, ParseKey<K>, undefined>
getOrThrow(key)
Returns the given config property or throw if it doesn't exist.
Returns: Exclude<DeepIndex<Config, ParseKey<K>, undefined>, undefined>
Arguments:
key: K
getUnchecked(key, [defaultValue])
Returns config key without type checking.
Returns: T
Arguments:
key: string
defaultValue: T