Unverified Commit adf40a6f authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

chore: convert `with-dynamic-import` to TypeScript (#38844)

Closes #38806

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
parent 420d7850
......@@ -32,3 +32,6 @@ yarn-error.log*
# vercel
.vercel
# TypeScript
*.tsbuildinfo
\ No newline at end of file
......@@ -4,18 +4,12 @@ export default function Header() {
return (
<div>
<Link href="/">
<a style={styles.a}>Home</a>
<a style={{ marginRight: 10 }}>Home</a>
</Link>
<Link href="/about">
<a style={styles.a}>About</a>
<a style={{ marginRight: 10 }}>About</a>
</Link>
</div>
)
}
const styles = {
a: {
marginRight: 10,
},
}
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
......@@ -3,13 +3,17 @@
"scripts": {
"dev": "next",
"build": "next build",
"export": "next export",
"start": "next start"
},
"dependencies": {
"fuse.js": "6.4.1",
"fuse.js": "6.6.2",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18",
"@types/react": "^18",
"typescript": "^4.7.4"
}
}
import Header from '../components/Header'
const About = () => (
<div>
<Header />
<p>This is the about page.</p>
</div>
)
export default About
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment