rsnext/packages/next
Wyatt Johnson 8405a1a2c3
Misc Typescript updates (#54734)
This bundles a collection of Typescript updates that correct typings
across the servers:

- Manifest typings have been narrowed
- Some methods have been moved to abstract methods on classes
- Added some type guard functions for route matches
- Utilized early returns in logic to reduce nesting
- Added mutability modifiers to some properties to prevent accidental
mutations
- Removed some useless assigns from unused catch error params:

```ts
try {
  await something
} catch (_) {}

// Is the same as

try {
  await something
} catch {}
```

This does not introduce any new functionality, simply some QOL
improvements.
2023-08-30 12:04:02 +02:00
..
compat
experimental/testmode Concept: test mode for Playwright and similar integration tools (#52520) 2023-08-14 18:45:50 +00:00
font
image-types Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
legacy
navigation-types/compat Return null for useParams in pages (#47490) 2023-03-25 10:05:44 +01:00
src Misc Typescript updates (#54734) 2023-08-30 12:04:02 +02:00
types Use createClientModuleProxy from Flight Server (#54232) 2023-08-18 15:31:25 +00:00
amp.d.ts
amp.js
app.d.ts
app.js
babel.d.ts
babel.js
cache.d.ts Update cache methods for app dir (#49165) 2023-05-03 13:21:58 -07:00
cache.js Update cache methods for app dir (#49165) 2023-05-03 13:21:58 -07:00
client.d.ts
client.js
config.d.ts
config.js
constants.d.ts
constants.js
document.d.ts
document.js
dynamic.d.ts
dynamic.js
error.d.ts
error.js
head.d.ts
head.js
headers.d.ts
headers.js
image.d.ts Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
image.js Add unstable_getImgProps export from next/image (#51205) 2023-06-29 01:35:08 +00:00
index.d.ts Update revalidate handling for app (#49062) 2023-05-02 08:19:02 -07:00
jest.d.ts
jest.js
license.md
link.d.ts
link.js
navigation.d.ts
navigation.js
package.json v13.4.20-canary.12 2023-08-29 10:42:17 +00:00
README.md
router.d.ts
router.js
script.d.ts
script.js
server.d.ts Update revalidate handling for app (#49062) 2023-05-02 08:19:02 -07:00
server.js Update revalidate handling for app (#49062) 2023-05-02 08:19:02 -07:00
taskfile-ncc.js
taskfile-swc.js fix: minimum node version 16.14.0 (#54331) 2023-08-22 08:58:53 +00:00
taskfile-watch.js
taskfile.js Revert "fix(47299): allow testing pages with metadata in jsdom test environment" (#54160) 2023-08-17 08:49:08 +00:00
tsconfig.json Concept: test mode for Playwright and similar integration tools (#52520) 2023-08-14 18:45:50 +00:00
web-vitals.d.ts add useReportWebVitals that makes use of web-vitals package (#47319) 2023-03-24 10:13:50 +00:00
web-vitals.js add useReportWebVitals that makes use of web-vitals package (#47319) 2023-03-24 10:13:50 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Authors

Security

If you believe you have found a security vulnerability in Next.js, we encourage you to responsibly disclose this and not open a public issue. We will investigate all legitimate reports. Email security@vercel.com to disclose any security vulnerabilities.

https://vercel.com/security