@unhead/schema
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,3 +0,3 @@ | ||
import { HeadTag as HeadTag$1, MergeHead, Merge, Base as Base$1, DefinedValueOrEmptyObject, Link as Link$1, DataKeys, Style as Style$1, Script as Script$1, Noscript as Noscript$1, HtmlAttributes as HtmlAttributes$1, BodyAttributes as BodyAttributes$1, Meta as Meta$1, Stringable } from '@zhead/schema'; | ||
export { MergeHead, TagKey } from '@zhead/schema'; | ||
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'; | ||
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, TagKey } from '@zhead/schema'; | ||
@@ -95,2 +95,20 @@ interface ResolvesDuplicates { | ||
declare type MaybeArray<T> = T | T[]; | ||
declare type BaseBodyAttr = BodyAttributes$1; | ||
declare type BaseHtmlAttr = HtmlAttributes$1; | ||
interface BodyAttr extends Omit<BaseBodyAttr, 'class'> { | ||
/** | ||
* The class global attribute is a space-separated list of the case-sensitive classes of the element. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class | ||
*/ | ||
class?: MaybeArray<string> | Record<string, boolean>; | ||
} | ||
interface HtmlAttr extends Omit<HtmlAttributes$1, 'class'> { | ||
/** | ||
* The class global attribute is a space-separated list of the case-sensitive classes of the element. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class | ||
*/ | ||
class?: MaybeArray<string> | Record<string, boolean>; | ||
} | ||
interface BaseMeta extends Omit<Meta$1, 'content'> { | ||
@@ -107,2 +125,3 @@ /** | ||
declare type EntryAugmentation = undefined | Record<string, any>; | ||
declare type Title = string; | ||
@@ -116,4 +135,4 @@ declare type TitleTemplate = string | null | ((title?: string) => string); | ||
declare type Noscript<E extends EntryAugmentation = {}> = Noscript$1 & DataKeys & SchemaAugmentations['noscript'] & DefinedValueOrEmptyObject<E>; | ||
declare type HtmlAttributes<E extends EntryAugmentation = {}> = HtmlAttributes$1 & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>; | ||
declare type BodyAttributes<E extends EntryAugmentation = {}> = BodyAttributes$1 & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>; | ||
declare type HtmlAttributes<E extends EntryAugmentation = {}> = HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>; | ||
declare type BodyAttributes<E extends EntryAugmentation = {}> = BodyAttr & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>; | ||
interface Head<E extends MergeHead = SchemaAugmentations> { | ||
@@ -188,2 +207,2 @@ /** | ||
export { Base, BodyAttributes, EntryAugmentation, Head, HeadTag, HeadTagKeys, HtmlAttributes, InnerContent, Link, Meta, Never, Noscript, ResolvesDuplicates, SchemaAugmentations, Script, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, UserAttributesConfig, UserTagConfigWithoutInnerContent }; | ||
export { Base, BaseBodyAttr, BaseHtmlAttr, BodyAttributes, EntryAugmentation, Head, HeadTag, HeadTagKeys, HtmlAttributes, InnerContent, Link, MaybeArray, Meta, Never, Noscript, ResolvesDuplicates, SchemaAugmentations, Script, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, UserAttributesConfig, UserTagConfigWithoutInnerContent }; |
{ | ||
"name": "@unhead/schema", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"packageManager": "pnpm@7.14.0", | ||
@@ -6,0 +6,0 @@ "author": "Harlan Wilton <harlan@harlanzw.com>", |
9903
203