11import type { MaybeComputedRef , MaybeRef } from '@vueuse/shared'
2- import type { EntryAugmentation , MergeHead , Base as _Base , BodyAttributes as _BodyAttributes , HtmlAttributes as _HtmlAttributes , Link as _Link , Meta as _Meta , Noscript as _Noscript , Script as _Script , Style as _Style , Title as _Title , TitleTemplate as _TitleTemplate } from '@unhead/schema'
2+ import type { BaseBodyAttr , BaseHtmlAttr , EntryAugmentation , MaybeArray , MergeHead , SchemaAugmentations , Base as _Base , Link as _Link , Meta as _Meta , Noscript as _Noscript , Script as _Script , Style as _Style , Title as _Title , TitleTemplate as _TitleTemplate } from '@unhead/schema'
3+ import type { DataKeys , DefinedValueOrEmptyObject } from '@zhead/schema'
34import type { MaybeComputedRefEntries } from './util'
45
6+ interface HtmlAttr extends Omit < BaseHtmlAttr , 'class' > {
7+ /**
8+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
9+ *
10+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
11+ */
12+ class ?: MaybeArray < MaybeComputedRef < string > > | Record < string , MaybeComputedRef < boolean > >
13+ }
14+
15+ interface BodyAttr extends Omit < BaseBodyAttr , 'class' > {
16+ /**
17+ * The class global attribute is a space-separated list of the case-sensitive classes of the element.
18+ *
19+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class
20+ */
21+ class ?: MaybeArray < MaybeComputedRef < string > > | Record < string , MaybeComputedRef < boolean > >
22+ }
23+
524export type Title = MaybeComputedRef < _Title >
625export type TitleTemplate = MaybeRef < _TitleTemplate > | ( ( title ?: string ) => _TitleTemplate )
726export type Base < E extends EntryAugmentation = { } > = MaybeComputedRef < MaybeComputedRefEntries < _Base < E > > >
@@ -10,8 +29,8 @@ export type Meta<E extends EntryAugmentation = {}> = MaybeComputedRefEntries<_Me
1029export type Style < E extends EntryAugmentation = { } > = MaybeComputedRefEntries < _Style < E > >
1130export type Script < E extends EntryAugmentation = { } > = MaybeComputedRefEntries < _Script < E > >
1231export type Noscript < E extends EntryAugmentation = { } > = MaybeComputedRefEntries < _Noscript < E > >
13- export type HtmlAttributes < E extends EntryAugmentation = { } > = MaybeComputedRef < MaybeComputedRefEntries < _HtmlAttributes < E > > >
14- export type BodyAttributes < E extends EntryAugmentation = { } > = MaybeComputedRef < MaybeComputedRefEntries < _BodyAttributes < E > > >
32+ export type HtmlAttributes < E extends EntryAugmentation = { } > = MaybeComputedRef < MaybeComputedRefEntries < HtmlAttr & DataKeys & SchemaAugmentations [ 'htmlAttrs' ] & DefinedValueOrEmptyObject < E > > >
33+ export type BodyAttributes < E extends EntryAugmentation = { } > = MaybeComputedRef < MaybeComputedRefEntries < BodyAttr & DataKeys & SchemaAugmentations [ 'bodyAttrs' ] & DefinedValueOrEmptyObject < E > > >
1534
1635export interface ReactiveHead < E extends MergeHead = MergeHead > {
1736 /**
0 commit comments