mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
doc: typegen for typedRoutes (#96296)
`typegen` also generated the inputs needed for `typedRoutes`
This commit is contained in:
@@ -366,7 +366,7 @@ export function Nav() {
|
||||
|
||||
> **How does it work?**
|
||||
>
|
||||
> When running `next dev` or `next build`, Next.js generates a hidden `.d.ts` file inside `.next` that contains information about all existing routes in your application (all valid routes as the `href` type of `Link`). This `.d.ts` file is included in `tsconfig.json` and the TypeScript compiler will check that `.d.ts` and provide feedback in your editor about invalid links.
|
||||
> When running, `next typegen`, `next dev` or `next build`, Next.js generates a hidden `.d.ts` file inside `.next` that contains information about all existing routes in your application (all valid routes as the `href` type of `Link`). This `.d.ts` file is included in `tsconfig.json` and the TypeScript compiler will check that `.d.ts` and provide feedback in your editor about invalid links.
|
||||
|
||||
### Type IntelliSense for Environment Variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user