diff --git a/examples/with-prefetching/components/Nav.js b/examples/with-prefetching/components/Nav.tsx similarity index 100% rename from examples/with-prefetching/components/Nav.js rename to examples/with-prefetching/components/Nav.tsx diff --git a/examples/with-prefetching/package.json b/examples/with-prefetching/package.json index 349de02f4d84b..8ab7af1a3e0a1 100644 --- a/examples/with-prefetching/package.json +++ b/examples/with-prefetching/package.json @@ -7,7 +7,12 @@ }, "dependencies": { "next": "latest", - "react": "^17.0.2", - "react-dom": "^17.0.2" + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@types/node": "18.7.18", + "@types/react": "18.0.20", + "typescript": "4.8.3" } } diff --git a/examples/with-prefetching/pages/_app.js b/examples/with-prefetching/pages/_app.tsx similarity index 52% rename from examples/with-prefetching/pages/_app.js rename to examples/with-prefetching/pages/_app.tsx index bfcc5a452d248..8e57bb3bd813c 100644 --- a/examples/with-prefetching/pages/_app.js +++ b/examples/with-prefetching/pages/_app.tsx @@ -1,6 +1,7 @@ +import type { AppProps } from 'next/app' import Nav from '../components/Nav' -export default function App({ Component, pageProps }) { +export default function App({ Component, pageProps }: AppProps) { return ( <>