diff --git a/examples/next14-app/components/theme-provider.tsx b/examples/next14-app/components/theme-provider.tsx
index 41b170ed..7f965516 100644
--- a/examples/next14-app/components/theme-provider.tsx
+++ b/examples/next14-app/components/theme-provider.tsx
@@ -1,7 +1,7 @@
'use client';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
-import type { ThemeProviderProps } from 'next-themes/dist/types';
+import type { ThemeProviderProps } from 'next-themes';
import * as React from 'react';
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
diff --git a/examples/next14-app/next-env.d.ts b/examples/next14-app/next-env.d.ts
index 4f11a03d..40c3d680 100644
--- a/examples/next14-app/next-env.d.ts
+++ b/examples/next14-app/next-env.d.ts
@@ -2,4 +2,4 @@
///
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
diff --git a/examples/next15-app/components/theme-provider.tsx b/examples/next15-app/components/theme-provider.tsx
index 41b170ed..7f965516 100644
--- a/examples/next15-app/components/theme-provider.tsx
+++ b/examples/next15-app/components/theme-provider.tsx
@@ -1,7 +1,7 @@
'use client';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
-import type { ThemeProviderProps } from 'next-themes/dist/types';
+import type { ThemeProviderProps } from 'next-themes';
import * as React from 'react';
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
diff --git a/examples/next15-app/next-env.d.ts b/examples/next15-app/next-env.d.ts
index 4f11a03d..40c3d680 100644
--- a/examples/next15-app/next-env.d.ts
+++ b/examples/next15-app/next-env.d.ts
@@ -2,4 +2,4 @@
///
// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
+// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
diff --git a/examples/next15-app/tsconfig.json b/examples/next15-app/tsconfig.json
index 1b03bc25..22092f7c 100644
--- a/examples/next15-app/tsconfig.json
+++ b/examples/next15-app/tsconfig.json
@@ -1,6 +1,10 @@
{
"compilerOptions": {
- "lib": ["dom", "dom.iterable", "esnext"],
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@@ -15,15 +19,25 @@
"jsx": "preserve",
"baseUrl": ".",
"paths": {
- "@/*": ["./*"]
+ "@/*": [
+ "./*"
+ ]
},
"plugins": [
{
"name": "next"
}
],
- "strictNullChecks": true
+ "strictNullChecks": true,
+ "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"
+ ]
}