Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

riddla
Copy link
Contributor

@riddla riddla commented Mar 11, 2024

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)

πŸ“š Description

I tried adding my custom modules types to the runtime config via declare module "nuxt/schema" with no success.

Is @nuxtjs/schema better/right? It did work in my case.

πŸ“ Checklist

  • I have updated the documentation accordingly.

I tried adding my custom modules types to the runtime config via `declare module "nuxt/schema"` with no success.

Is `@nuxtjs/schema` better/right? It did work in my case.
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

nuxt-studio bot commented Mar 11, 2024

βœ… Live Preview ready!

Name Edit Preview Latest Commit
Nuxt Docs Edit on Studio β†—οΈŽ View Live Preview bfbd7aa

@danielroe
Copy link
Member

nuxt/schema is meant to be used within your own project if you do not have @nuxt/schema installed separately, much as nuxt/kit also is a convenience layer so you don't need to explicitly install @nuxt/kit.

@nuxt/schema is used for module authors.

It would be worth adding a note about this, but not changing the code here.

@danielroe danielroe marked this pull request as draft March 11, 2024 15:55
@danielroe danielroe marked this pull request as ready for review March 18, 2024 15:16
@danielroe danielroe changed the title docs: use @nuxtjs/schema to type runtime config docs: note that @nuxt/schema should be used by module authors Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants