Skip to content

Commit 58a16d2

Browse files
committed
Update types from newer versions of next.js
1 parent 0f64310 commit 58a16d2

2 files changed

Lines changed: 8 additions & 2 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+
/// <reference types="next/navigation-types/compat/navigation" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/basic-features/typescript for more information.

tsconfig.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@
2121
"baseUrl": ".",
2222
"paths": {
2323
"@/*": ["./*"]
24-
}
24+
},
25+
"plugins": [
26+
{
27+
"name": "next"
28+
}
29+
]
2530
},
2631
"exclude": ["cypress", "./cypress.config.ts", "node_modules"],
27-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
32+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"]
2833
}

0 commit comments

Comments
 (0)