client["/endpoint"].GET style call pattern to enable go-to-definition #1526
Labels
enhancement
New feature or request
openapi-fetch
Relevant to the openapi-fetch library
PRs welcome
PRs are welcome to solve this issue!
tricky
Complex problem which requires deep knowledge of TS, OpenAPI, this project, or all three
Description
Navigating from call site to docs (aka generated typing) today is quite inconvenient as vscode is not able to navigate from the path argument parameter to the type def. I would love to be able to use cmd+click to be able to go straight to the generated types for the specific endpoint. This is similar to how trpc would work
Proposal
Before
After
This way you can cmd+click on the
/endpoint
part in VSCode to go straight to defintionWe can keep both call styles too (just like TRPC) for backward compat.
Checklist
The text was updated successfully, but these errors were encountered: