Skip to content

Commit e72b8f2

Browse files
Import route types in next-env.d.ts for improved TypeScript support
1 parent 50c0f91 commit e72b8f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/dev/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)