Skip to content

Added DashboardData and related dashboard types to the lib/types/index.ts barrel export so they are accessible from @/lib/types, and consolidated redundant imports in lib/api/user.ts.#1830

Open
DevScoopee wants to merge 1 commit into
EarnQuestOne:mainfrom
DevScoopee:main

Conversation

@DevScoopee

Copy link
Copy Markdown

DashboardData and related types (EarningsData, Badge, UserStats, Quest, Submission) were defined in lib/types/dashboard.ts and re-exported from lib/api/user.ts, but were missing from the barrel export at lib/types/index.ts. This meant consumers importing from @/lib/types could not access these types. The fix adds export * from './dashboard' to lib/types/index.ts and merges a redundant import statement in lib/api/user.ts. No runtime changes, zero regressions, all passing tests continue to pass.

Closes #805

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@DevScoopee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…ex.ts barrel export so they are accessible from @/lib/types, and consolidated redundant imports in lib/api/user.ts.

 DashboardData and related types (EarningsData, Badge, UserStats, Quest, Submission) were defined in lib/types/dashboard.ts and re-exported from lib/api/user.ts, but were missing from the barrel export at lib/types/index.ts. This meant consumers importing from @/lib/types could not access these types. The fix adds export * from './dashboard' to lib/types/index.ts and merges a redundant import statement in lib/api/user.ts. No runtime changes, zero regressions, all passing tests continue to pass.

Closes EarnQuestOne#805
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.

[FE-016] Add DashboardData type source and export path in lib/api/user

1 participant