Function createDynamicConfig

  • Create or return a dynamic version of the passed config, if it is not already dynamic

    Type Parameters

    Parameters

    • config: T

      The config to be converted into a dynamic config

    • Optional defaultConfig: IConfigDefaults<T, IConfiguration>

      The default values to apply on the config if the properties don't already exist

    • Optional logger: IDiagnosticLogger
    • Optional inPlace: boolean

      Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true

    Returns IDynamicConfigHandler<T>

    The dynamic config handler for the config (whether new or existing)

Generated using TypeDoc