mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #664] Implement native Vinext route-aware type generation #139
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pacexy on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/664
Summary
Vinext currently has an optional dev-time bridge that can run
next typegenwhen Next.js is installed locally. That improves developer experience in the short term, but it should not be the long-term solution.Vinext already scans the route tree internally via
routing/app-router.tsandrouting/pages-router.ts. We should use that data to generate the route-aware.d.tsfiles directly, without depending on Next.js.Goal
Implement native Vinext type generation for helpers such as
PagePropsandLayoutProps, so route-aware typing no longer depends onnext typegenor a local Next.js install.Notes
next typegenintegration is intended as a temporary stopgap for developer experience.Related