Closed
Description
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
client.GET('/endpoint', { params: {} })
After
client['/endpoint'].GET({ params: {} })
This way you can cmd+click on the /endpoint
part in VSCode to go straight to defintion
We can keep both call styles too (just like TRPC) for backward compat.
Checklist
- I’m willing to open a PR for this (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done