EU Parliament Monitor — API Documentation - v0.8.39
    Preparing search index...

    Function buildIMFEconomicContext

    • Build an IMFEconomicContext from an indexed series map.

      Each entry in seriesByKey should be keyed by the IMFMacroIndicatorKey so the builder can look up the mapping and produce a stable display row. Rows with no observations are skipped silently. When ANY indicator carries a forecast, forecastHorizonYear is set to the maximum forecast year so the caller can render a dashed overlay region starting from that year.

      Parameters

      • countryCode: string

        EU member state ISO2 code or IMF aggregate code.

      • countryName: string

        Country display name.

      • seriesByKey: ReadonlyMap<IMFMacroIndicatorKey, IMFSeries>

        Map of IMFMacroIndicatorKey to series.

      • Optionalvintage: string

        IMF data vintage label (e.g. WEO-April-2026).

      Returns IMFEconomicContext

      Populated IMFEconomicContext (may have an empty indicators array).