Fake Mirrors
    Preparing search index...

    Interface Config

    Defines the public contract for a config.

    Implementations are responsible for loading, parsing, and validating configuration data from a specific source.

    interface Config {
        get<T extends ConfigData>(schemaName: string): T;
    }

    Implemented by

    • Retrieves and validates a configuration object.

      The configuration data is loaded from the implementation's source and validated against a pre-registered JSON Schema. The result is cached to avoid redundant processing.

      Type Parameters

      • T extends ConfigData

        The expected type of the configuration object.

      Parameters

      • schemaName: string

        The name of the schema registered in the validator.

      Returns T

      The validated and typed configuration object.

      BootstrapError If loading or validation of the configuration fails.