infer getRouterParam type according to route path #3006
Open
Description
Describe the feature
extends getRouterParam arg based on the path of routes to catch errors in case the file was moved via typescript
as example, /api/[foo]/[bar].get.ts would type getRouterParam as getRouterParam('foo' | 'bar'): string
Additional information
- Would you be willing to help implement this feature?