Skip to content

Fix EconomicEventItem type: add period, make comparison nullable#14

Merged
alexpipipi merged 1 commit into
mainfrom
fix/economic-events-types
May 7, 2026
Merged

Fix EconomicEventItem type: add period, make comparison nullable#14
alexpipipi merged 1 commit into
mainfrom
fix/economic-events-types

Conversation

@alexpipipi

@alexpipipi alexpipipi commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added missing period: string | null field to EconomicEventItem interface
  • Changed comparison from string to string | null — API returns null when no comparison type applies

Problem

User reported that the economicEvents response type is missing the period field (e.g., "May", "Q1") and comparison can be null but was typed as string only.

Fixes SUPPORT-963

Test plan

  • npm run build — passes
  • npm run test:unit — 210 tests pass
  • npm run test:smoke — verify live API response matches updated types

… 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>
@alexpipipi alexpipipi merged commit 4256dda into main May 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant