From 518181f5cbb8932ba0afbb71753d18aa0b4e90d7 Mon Sep 17 00:00:00 2001 From: alexpipipi Date: Thu, 7 May 2026 11:48:02 +0200 Subject: [PATCH] Fix EconomicEventItem type: add missing period field, make comparison nullable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add `period: string | null` — API returns period (e.g., "May", "Q1") but the type definition was missing it entirely - Change `comparison: string` → `string | null` — API returns null when no comparison type applies Fixes SUPPORT-963 Co-Authored-By: Claude Opus 4.6 --- src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 359da8c..fe56c10 100644 --- a/src/types.ts +++ b/src/types.ts @@ -539,7 +539,8 @@ export interface EconomicEventsParams extends DateRange, Pagination { export interface EconomicEventItem { type: string; - comparison: string; + comparison: string | null; + period: string | null; country: string; date: string; actual?: number | null;