Interface ConfigManager

interface ConfigManager {
    get: (() => Config);
    update: ((conf: DeepPartial<Config>) => void);
    watchConf: (<T>(keys: T, effect: ((val: Pick<Config, T[number]>) => void)) => void);
}

Properties

Properties

get: (() => Config)
update: ((conf: DeepPartial<Config>) => void)
watchConf: (<T>(keys: T, effect: ((val: Pick<Config, T[number]>) => void)) => void)

Type declaration

    • <T>(keys, effect): void
    • Watch the config

      Type Parameters

      Parameters

      • keys: T
      • effect: ((val: Pick<Config, T[number]>) => void)
          • (val): void
          • Parameters

            Returns void

      Returns void