Allows access to a configuration section.

interface ConfigFragment {
    getConfig<T>(key: string): undefined | T;
    isEmpty(): boolean;
}

Methods

  • Provides access to a configuration section, e.g. map-layers. An interpreter defines what can be available there.

    Type Parameters

    • T

    Parameters

    • key: string

      configuration key

    Returns undefined | T

  • Checks if configuration options are provided by this fragment.

    Returns boolean