Skip to content

fix: resolve TS2308 duplicate export of UnsubscribeRequest between feed-api and websocket modules#744

Merged
hotlong merged 2 commits into
mainfrom
copilot/fix-all-ci-errors
Feb 19, 2026
Merged

fix: resolve TS2308 duplicate export of UnsubscribeRequest between feed-api and websocket modules#744
hotlong merged 2 commits into
mainfrom
copilot/fix-all-ci-errors

Conversation

Copilot AI commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Both feed-api.zod.ts and websocket.zod.ts export UnsubscribeRequestSchema / UnsubscribeRequest, causing TS2308 ambiguous re-export errors from the src/api/index.ts barrel.

  • Renamed feed-api exports to FeedUnsubscribeRequestSchema / FeedUnsubscribeRequest to disambiguate from the websocket counterpart
  • Updated FeedApiContracts.unsubscribe.input reference and test imports accordingly
Original prompt

fix all ci errors


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel

vercel Bot commented Feb 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectstack-play Ready Ready Preview, Comment Feb 19, 2026 3:43pm
spec Ready Ready Preview, Comment Feb 19, 2026 3:43pm

Request Review

…ed-api and websocket modules

Rename feed-api exports to FeedUnsubscribeRequestSchema/FeedUnsubscribeRequest
to avoid ambiguous re-export from api barrel (index.ts).

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all CI errors in the project fix: resolve TS2308 duplicate export of UnsubscribeRequest between feed-api and websocket modules Feb 19, 2026
Copilot AI requested a review from hotlong February 19, 2026 15:41
@hotlong
hotlong marked this pull request as ready for review February 19, 2026 15:48
Copilot AI review requested due to automatic review settings February 19, 2026 15:48
@hotlong
hotlong merged commit 709b617 into main Feb 19, 2026
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resolves a TypeScript TS2308 compilation error caused by duplicate exports of UnsubscribeRequest between the feed-api.zod.ts and websocket.zod.ts modules, which are both re-exported through the src/api/index.ts barrel file.

Changes:

  • Renamed feed-api's UnsubscribeRequestSchema to FeedUnsubscribeRequestSchema and the type to FeedUnsubscribeRequest to disambiguate from websocket's counterpart
  • Updated the FeedApiContracts.unsubscribe.input reference to use the new schema name
  • Updated test imports and test suite names to reflect the new naming

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/spec/src/api/feed-api.zod.ts Renamed UnsubscribeRequestSchema to FeedUnsubscribeRequestSchema and updated FeedApiContracts reference
packages/spec/src/api/feed-api.test.ts Updated import and test descriptions to use the new FeedUnsubscribeRequestSchema name

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.

3 participants