Skip to content

fix(types): register augments for Nitro projects - #641

Merged
harlan-zw merged 1 commit into
mainfrom
fix/nitro-hook-types
Jul 22, 2026
Merged

fix(types): register augments for Nitro projects#641
harlan-zw merged 1 commit into
mainfrom
fix/nitro-hook-types

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Resolves #640

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Nuxt registered nuxt-sitemap-augments.d.ts only in the app type context, leaving sitemap Nitro hook callbacks untyped in project-reference configs. Register the template for Nitro and node type contexts, and cover the context flags with a unit regression test.

@pkg-pr-new

pkg-pr-new Bot commented Jul 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxtjs/sitemap@641

commit: 3c4a797

@harlan-zw
harlan-zw merged commit 0fb3865 into main Jul 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Nitro hook types are not being resolved

1 participant