@unhead/schema 0.1.3 → 0.2.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,6 +22,12 @@ interface TagPosition {
22
22
  * @default 'head'
23
23
  */
24
24
  tagPosition?: 'head' | 'bodyClose' | 'bodyOpen';
25
+ /**
26
+ * Render the tag before the body close.
27
+ *
28
+ * @deprecated Use `tagPosition: 'bodyClose'` instead.
29
+ */
30
+ body?: true;
25
31
  }
26
32
  interface InnerContent {
27
33
  /**
@@ -122,8 +128,8 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
122
128
  content?: MaybeArray<Stringable>;
123
129
  }
124
130
  declare type EntryAugmentation = undefined | Record<string, any>;
125
- declare type Title = string;
126
- declare type TitleTemplate = string | null | ((title?: string) => string);
131
+ declare type Title = string | null;
132
+ declare type TitleTemplate = string | null | ((title?: string) => string | null);
127
133
  declare type Base<E extends EntryAugmentation = {}> = Partial<Merge<SchemaAugmentations['base'], Base$1>> & DefinedValueOrEmptyObject<E>;
128
134
  declare type Link<E extends EntryAugmentation = {}> = Link$1 & DataKeys & SchemaAugmentations['link'] & DefinedValueOrEmptyObject<E>;
129
135
  declare type Meta<E extends EntryAugmentation = {}> = BaseMeta & DataKeys & SchemaAugmentations['meta'] & DefinedValueOrEmptyObject<E>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.2.0",
5
5
  "packageManager": "pnpm@7.14.0",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",