diff --git a/docs/content/docs/3.api/6.nuxt-hooks.md b/docs/content/docs/3.api/6.nuxt-hooks.md index bc312cc2..62f4083f 100644 --- a/docs/content/docs/3.api/6.nuxt-hooks.md +++ b/docs/content/docs/3.api/6.nuxt-hooks.md @@ -5,7 +5,7 @@ description: Use Nuxt hooks to extend the Nuxt Scripts module. ## `scripts:registry` -- Type: `async (ctx: { registry: ScriptRegistry }) => HookResult` +- Type: `async (registry: RegistryScripts) => HookResult` Add registry scripts at build, allowing them to be loaded via `scripts.registry` and bundled if available. @@ -14,8 +14,8 @@ This is intended to be used by modules. ```ts [module.ts] export default defineNuxtModule({ setup() { - nuxt.hooks.hook('scripts:registry', async (ctx) => { - ctx.registry.add({ + nuxt.hooks.hook('scripts:registry', async (registry) => { + registry.push({ // used in DevTools label: 'My Custom Script', logo: ``,