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

fix: augment @nuxt/schema rather than nuxt/schema #261

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

danielroe
Copy link
Contributor

Context: nuxt/nuxt#28332

nuxt/schema is a re-export of @nuxt/schema for users to use. Modules should not augment it, or it may end up overwriting the inferred types from @nuxt/schema.

(We made the change in nuxt/module-builder#295 (released in v0.8.0 of @nuxt/module-builder) to avoid doing this in @nuxt/module-builder itself.)

@fago
Copy link
Contributor

fago commented Sep 10, 2024

@maximilianmikus or @TurtlBbx could one of you check this and merge if good? I guess we need to ensure our typing still works correctly. Related, I guess we should add a seperate issue to improve typing of our APIs and add a type for the page object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants