@unhead/schema 0.1.4 → 0.2.3
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.
- package/dist/index.d.ts +9 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeadTag as HeadTag$1, MergeHead, BodyAttributes as BodyAttributes$1, HtmlAttributes as HtmlAttributes$1, Merge, Base as Base$1, DefinedValueOrEmptyObject, Link as Link$1, DataKeys, Style as Style$1, Script as Script$1, Noscript as Noscript$1, Meta as Meta$1, Stringable } from '@zhead/schema';
|
|
2
|
-
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, TagKey } from '@zhead/schema';
|
|
2
|
+
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, MetaFlatInput, TagKey } from '@zhead/schema';
|
|
3
3
|
import { NestedHooks, Hookable } from 'hookable';
|
|
4
4
|
|
|
5
5
|
interface ResolvesDuplicates {
|
|
@@ -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>;
|