fix: resolve TS2308 duplicate export of UnsubscribeRequest between feed-api and websocket modules#744
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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
hotlong
marked this pull request as ready for review
February 19, 2026 15:48
Contributor
There was a problem hiding this comment.
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
UnsubscribeRequestSchematoFeedUnsubscribeRequestSchemaand the type toFeedUnsubscribeRequestto disambiguate from websocket's counterpart - Updated the
FeedApiContracts.unsubscribe.inputreference 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both
feed-api.zod.tsandwebsocket.zod.tsexportUnsubscribeRequestSchema/UnsubscribeRequest, causing TS2308 ambiguous re-export errors from thesrc/api/index.tsbarrel.FeedUnsubscribeRequestSchema/FeedUnsubscribeRequestto disambiguate from the websocket counterpartFeedApiContracts.unsubscribe.inputreference and test imports accordinglyOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.