A value interceptor.

  • An interceptor is informed about any config key access. The lookupValue function can be used to fetch the original configuration value. An interceptor may return custom values.

    Parameters

    • key: string

      config key

    • lookupValue: () => SupportedValueTypes

      a function providing the original config value

    Returns SupportedValueTypes

    the intercepted config value or undefined