Skip to content

fix(frontend): remove duplicate exported AggregatedSession type alias#159

Open
OnlyTerp wants to merge 1 commit into
sybil-solutions:mainfrom
OnlyTerp:fix/aggregated-session-export-158
Open

fix(frontend): remove duplicate exported AggregatedSession type alias#159
OnlyTerp wants to merge 1 commit into
sybil-solutions:mainfrom
OnlyTerp:fix/aggregated-session-export-158

Conversation

@OnlyTerp

Copy link
Copy Markdown

Fixes #158

Removes the export keyword from the route-local AggregatedSession type alias in frontend/src/app/api/agent/sessions/all/route.ts. The canonical client contract remains exported from frontend/src/features/agent/session-contracts.ts.

Verification

  • npm run check:contracts
  • npm --prefix frontend run typecheck
  • npm --prefix frontend run lint

Notes

The route-local AggregatedSession type was exported alongside the canonical
client contract in frontend/src/features/agent/session-contracts.ts, causing
npm run check:contracts to fail on duplicate declarations.

Keep the canonical export in session-contracts.ts and make the route-local
type non-exported. No runtime or response shape change.
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.

Fix duplicate AggregatedSession contract export

1 participant