Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GlobalConfig<T>

Type parameters

Hierarchy

  • GlobalConfig

Index

Constructors

Properties

configuration: Configuration & Record<PropertyKey, any> = {}

The configuration object.

usedAsReference: (string | number | symbol)[] = ...

Keys marked for not be deeply cloned when setting and returning values.

Methods

  • get<K>(key: K, defaultVal?: T[K]): T[K]
  • get<D>(key: PropertyKey, defaultVal?: D): D
  • set<K>(key: K, value: T[K]): asserts this is GlobalConfig<WithProperty<T, K>>
  • set<K, V>(key: K, value: V): asserts this is GlobalConfig<T & { [ key in PropertyKey]: V }>

Generated using TypeDoc