GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Reads a module configuration value from the modules.<moduleId> block.

      This is the canonical read path of the Plugin Contract v1 (INV-CONFIG): every plugin declares its config under modules.<id> in the profile and reads it through this accessor (exposed publicly as Config.getModuleConfig). The deprecated legacy root-key fallback was removed in S14 — the contract is frozen, modules.<id> is the only form.

      Type Parameters

      • T = unknown

      Parameters

      • reader: ConfigReader

        Config storage exposing get(path, defaultValue).

      • moduleId: string

        Plugin module id (e.g. "storage", "addpoi").

      • Optionalkey: string

        Optional dot-notation key inside the module block; omit to read the whole block.

      • OptionaldefaultValue: T

        Returned when the block (or key) does not resolve.

      Returns T