get-convex / get-convex/convex-react-query

Ugly type error when string provided but expecting ID

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
41
Forks
7
PR merge metrics
No merged PRs in 30d

Description

The overload? conditional type? seems to be making this error message way more opaque than necessary

![image](https://github.com/user-attachments/assets/50261304-5d52-4d77-9d60-7c638a7838c1)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the type error shown in the issue when a string is supplied where an ID is expected. Inspect the overload and conditional type involved, then determine what a clearer diagnostic should communicate. Done means the same invalid call produces an error that is substantially easier to understand.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.