Skip to content

Commit 518181f

Browse files
alexpipipiclaude
andcommitted
Fix EconomicEventItem type: add missing period field, make comparison nullable
- 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 <noreply@anthropic.com>
1 parent a6a8546 commit 518181f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ export interface EconomicEventsParams extends DateRange, Pagination {
539539

540540
export interface EconomicEventItem {
541541
type: string;
542-
comparison: string;
542+
comparison: string | null;
543+
period: string | null;
543544
country: string;
544545
date: string;
545546
actual?: number | null;

0 commit comments

Comments
 (0)