Skip to content

docs: explain custom typecheck includes - #36210

Draft
mmaxjr wants to merge 1 commit into
nuxt:mainfrom
mmaxjr:docs/typecheck-custom-files
Draft

mmaxjr wants to merge 1 commit into
nuxt:mainfrom
mmaxjr:docs/typecheck-custom-files

Conversation

@mmaxjr

@mmaxjr mmaxjr commented Aug 29, 2026 •

Copy link
Copy Markdown

This PR adds a short example to the TypeScript guide for users who keep files outside Nuxt's default type contexts.

The main point is to make it clearer that the right config depends on where the file is meant to run:

  • appTsConfig for files that rely on the Nuxt app context
  • nodeTsConfig for plain Node.js files such as scripts
  • sharedTsConfig for files shared between app and server code

Closes #34756

Checked with:

git diff --check -- docs/3.guide/1.concepts/8.typescript.md

@github-actions github-actions Bot added 5.x 📚 documentation Documentation improvements or additions labels Aug 29, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

pnpm add https://pkg.pr.new/@nuxt/kit@36210
npm i https://pkg.pr.new/@nuxt/kit@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

@nuxt/nitro-server

pnpm add https://pkg.pr.new/@nuxt/nitro-server@36210
npm i https://pkg.pr.new/@nuxt/nitro-server@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

nuxt

pnpm add https://pkg.pr.new/nuxt@36210
npm i https://pkg.pr.new/nuxt@36210
yarn add https://pkg.pr.new/[email protected]

@nuxt/rspack-builder

pnpm add https://pkg.pr.new/@nuxt/rspack-builder@36210
npm i https://pkg.pr.new/@nuxt/rspack-builder@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

@nuxt/schema

pnpm add https://pkg.pr.new/@nuxt/schema@36210
npm i https://pkg.pr.new/@nuxt/schema@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

@nuxt/vite-builder

pnpm add https://pkg.pr.new/@nuxt/vite-builder@36210
npm i https://pkg.pr.new/@nuxt/vite-builder@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

@nuxt/webpack-builder

pnpm add https://pkg.pr.new/@nuxt/webpack-builder@36210
npm i https://pkg.pr.new/@nuxt/webpack-builder@36210
yarn add https://pkg.pr.new/@nuxt/[email protected]

commit: 6f6cb7b

@github-actions

Copy link
Copy Markdown
Contributor

We've flagged this as a potential contribution without a human behind it. We welcome the thoughtful use of AI tools when contributing to Nuxt, but ask all contributors to follow two core principles:

  1. Never let an LLM speak for you - all comments, issues, and PR descriptions should be written in your own words, reflecting your own understanding.
  2. Never let an LLM think for you - only submit contributions you fully understand and can explain.

Please review our AI-assisted contribution guidelines and update this contribution if needed.

If this was flagged in error, we apologise! 😳 Just let us know. 🙏

@mmaxjr

mmaxjr commented Aug 29, 2026

Copy link
Copy Markdown
Author

Thanks for the note. I reviewed the AI-assisted contribution guidelines.

I understand the change in this PR: it documents how Nuxt users can include files outside the default type contexts by choosing the matching generated TypeScript config (appTsConfig, nodeTsConfig, or sharedTsConfig).

I can explain or adjust the wording if needed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x 📚 documentation Documentation improvements or additions possible bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests not in a test[s]/nuxt/ subdirectory are excluded from typechecking

2 participants