Skip to content

Commit e943333

Browse files
committed
next-env.d.ts and tsconfig updated
1 parent 3f4e748 commit e943333

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

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/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.

tsconfig.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -13,13 +17,19 @@
1317
"moduleResolution": "bundler",
1418
"resolveJsonModule": true,
1519
"isolatedModules": true,
16-
"jsx": "preserve",
20+
"jsx": "react-jsx",
1721
"baseUrl": ".",
1822
"paths": {
19-
"@/*": ["./*"]
23+
"@/*": [
24+
"./*"
25+
]
2026
},
2127
"strictNullChecks": true,
22-
"plugins": [{ "name": "next" }],
28+
"plugins": [
29+
{
30+
"name": "next"
31+
}
32+
],
2333
"erasableSyntaxOnly": true
2434
},
2535
"include": [
@@ -30,7 +40,10 @@
3040
"tailwind.config.ts",
3141
"prettier.config.ts",
3242
"postcss.config.mjs",
33-
".next/types/**/*.ts"
43+
".next/types/**/*.ts",
44+
".next/dev/types/**/*.ts"
3445
],
35-
"exclude": ["node_modules"]
46+
"exclude": [
47+
"node_modules"
48+
]
3649
}

0 commit comments

Comments
 (0)