Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): add // @ts-check to next.config.js docs #61543

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

styfle
Copy link
Member

@styfle styfle commented Feb 1, 2024

This PR updates the docs to add // @ts-check at the top of each next.config.js or next.config.mjs.

Even though you can't use next.config.ts, you can still get some type checking to catch typos such as wrong type or even duplicate keys.

image image

Closes NEXT-2335

@styfle styfle requested review from a team as code owners February 1, 2024 23:20
@styfle styfle requested review from manovotny and delbaoliveira and removed request for a team February 1, 2024 23:20
@styfle styfle enabled auto-merge (squash) February 1, 2024 23:21
@styfle styfle merged commit 804cb93 into canary Feb 1, 2024
30 checks passed
@styfle styfle deleted the update-docs-next-config-ts-check-comment branch February 1, 2024 23:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants