@nuxt/docs-nightly 4.3.0-29442002.5d974989 → 4.3.0-29442149.b56ec45a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,6 +69,12 @@ Then you can use the `custom` layout in your page:
69
69
 
70
70
  ```vue twoslash [pages/about.vue]
71
71
  <script setup lang="ts">
72
+ declare module 'nuxt/app' {
73
+ interface NuxtLayouts {
74
+ 'custom': unknown
75
+ }
76
+ }
77
+ // ---cut---
72
78
  definePageMeta({
73
79
  layout: 'custom',
74
80
  })
@@ -118,6 +124,12 @@ You can also use the [`setPageLayout`](/docs/4.x/api/utils/set-page-layout) help
118
124
 
119
125
  ```vue twoslash
120
126
  <script setup lang="ts">
127
+ declare module 'nuxt/app' {
128
+ interface NuxtLayouts {
129
+ 'custom': unknown
130
+ }
131
+ }
132
+ // ---cut---
121
133
  function enableCustomLayout () {
122
134
  setPageLayout('custom')
123
135
  }
@@ -129,6 +129,9 @@ export const defineWrappedResponseHandler = <T extends EventHandlerRequest, D> (
129
129
  }
130
130
  })
131
131
  ```
132
+ ```ts [server/api/hello.get.ts]
133
+ export default defineWrappedResponseHandler((event) => 'hello world')
134
+ ```
132
135
 
133
136
  ## Server Alias
134
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.3.0-29442002.5d974989",
3
+ "version": "4.3.0-29442149.b56ec45a",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",