Skip to content

Commit

Permalink
feat(examples/next): rename next.config to TypeScript
Browse files Browse the repository at this point in the history
- Convert next.config.mjs to next.config.ts and remove JSDoc type annotation
- Format tsconfig.json for better readability
- Add explicit ES2017 target to tsconfig.json
  • Loading branch information
ryoppippi committed Feb 4, 2025
1 parent ff7550a commit 767947d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import unTypiaNext from "@ryoppippi/unplugin-typia/next";

/** @type {import('next').NextConfig} */
export default unTypiaNext({})
24 changes: 19 additions & 5 deletions examples/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -18,9 +22,19 @@
}
],
"paths": {
"@/*": ["./*"]
}
"@/*": [
"./*"
]
},
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 767947d

Please sign in to comment.