@nuxt/docs-nightly 4.2.3-29424584.c1b3590f → 4.2.3-29425455.7d502292

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.
@@ -38,7 +38,7 @@ The properties of `useHead` can be dynamic, accepting `ref`, `computed` and `rea
38
38
  ## Type
39
39
 
40
40
  ```ts [Signature]
41
- export function useHead (meta: MaybeComputedRef<MetaObject>): void
41
+ export function useHead (meta: MaybeComputedRef<MetaObject>): ActiveHeadEntry<UseHeadInput>
42
42
 
43
43
  interface MetaObject {
44
44
  title?: string
@@ -52,6 +52,21 @@ interface MetaObject {
52
52
  htmlAttrs?: HtmlAttributes
53
53
  bodyAttrs?: BodyAttributes
54
54
  }
55
+
56
+ interface ActiveHeadEntry<Input> {
57
+ /**
58
+ * Updates the entry with new input.
59
+ *
60
+ * Will first clear any side effects for previous input.
61
+ */
62
+ patch: (input: Input) => void
63
+ /**
64
+ * Dispose the entry, removing it from the active head.
65
+ *
66
+ * Will queue side effects for removal.
67
+ */
68
+ dispose: () => void
69
+ }
55
70
  ```
56
71
 
57
72
  See [@unhead/schema](https://github.com/unjs/unhead/blob/main/packages/vue/src/types/schema.ts) for more detailed types.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.2.3-29424584.c1b3590f",
3
+ "version": "4.2.3-29425455.7d502292",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",