modelcontextprotocol / modelcontextprotocol/typescript-sdk
Zod types via `infer` make TypeScript types a lot less readable
Open
Nobody has claimed this yet.
enhancement
needs decision
P3
v2
- Dominant language
- TypeScript
- Stars
- 13.4k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
There's a lot of indirection in the types via Infer<...> making types in IDEs significantly less readable and ergonomic than just standard TS Types.
Should likely explore ways to improve this if possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the TypeScript declarations that use Infer<...> and inspect how they appear in IDE type information; the work is done when the relevant types are substantially more readable without losing their intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100