@unhead/schema 1.7.2 → 1.7.4
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.cts +7 -4
- package/dist/index.d.mts +7 -4
- package/dist/index.d.ts +7 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
|
|
|
166
166
|
* Use a head plugin, loads the plugins hooks.
|
|
167
167
|
*/
|
|
168
168
|
use: (plugin: HeadPlugin) => void;
|
|
169
|
+
/**
|
|
170
|
+
* Is it a server-side render context.
|
|
171
|
+
*/
|
|
169
172
|
ssr: boolean;
|
|
170
173
|
/**
|
|
171
174
|
* @internal
|
|
@@ -244,9 +247,9 @@ interface TagPriority {
|
|
|
244
247
|
* (besides some special tags).
|
|
245
248
|
*
|
|
246
249
|
* The following special tags have default priorities:
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
+
* -2 `<meta charset ...>`
|
|
251
|
+
* -1 `<base>`
|
|
252
|
+
* 0 `<meta http-equiv="content-security-policy" ...>`
|
|
250
253
|
*
|
|
251
254
|
* All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
|
|
252
255
|
*/
|
|
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
|
|
|
342
345
|
*
|
|
343
346
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
|
|
344
347
|
*/
|
|
345
|
-
content?: MaybeArray<Stringable
|
|
348
|
+
content?: MaybeArray<Stringable> | null;
|
|
346
349
|
}
|
|
347
350
|
type EntryAugmentation = undefined | Record<string, any>;
|
|
348
351
|
type MaybeFunctionEntries<T> = {
|
package/dist/index.d.mts
CHANGED
|
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
|
|
|
166
166
|
* Use a head plugin, loads the plugins hooks.
|
|
167
167
|
*/
|
|
168
168
|
use: (plugin: HeadPlugin) => void;
|
|
169
|
+
/**
|
|
170
|
+
* Is it a server-side render context.
|
|
171
|
+
*/
|
|
169
172
|
ssr: boolean;
|
|
170
173
|
/**
|
|
171
174
|
* @internal
|
|
@@ -244,9 +247,9 @@ interface TagPriority {
|
|
|
244
247
|
* (besides some special tags).
|
|
245
248
|
*
|
|
246
249
|
* The following special tags have default priorities:
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
+
* -2 `<meta charset ...>`
|
|
251
|
+
* -1 `<base>`
|
|
252
|
+
* 0 `<meta http-equiv="content-security-policy" ...>`
|
|
250
253
|
*
|
|
251
254
|
* All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
|
|
252
255
|
*/
|
|
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
|
|
|
342
345
|
*
|
|
343
346
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
|
|
344
347
|
*/
|
|
345
|
-
content?: MaybeArray<Stringable
|
|
348
|
+
content?: MaybeArray<Stringable> | null;
|
|
346
349
|
}
|
|
347
350
|
type EntryAugmentation = undefined | Record<string, any>;
|
|
348
351
|
type MaybeFunctionEntries<T> = {
|
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,9 @@ interface Unhead<Input extends {} = Head> {
|
|
|
166
166
|
* Use a head plugin, loads the plugins hooks.
|
|
167
167
|
*/
|
|
168
168
|
use: (plugin: HeadPlugin) => void;
|
|
169
|
+
/**
|
|
170
|
+
* Is it a server-side render context.
|
|
171
|
+
*/
|
|
169
172
|
ssr: boolean;
|
|
170
173
|
/**
|
|
171
174
|
* @internal
|
|
@@ -244,9 +247,9 @@ interface TagPriority {
|
|
|
244
247
|
* (besides some special tags).
|
|
245
248
|
*
|
|
246
249
|
* The following special tags have default priorities:
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
+
* -2 `<meta charset ...>`
|
|
251
|
+
* -1 `<base>`
|
|
252
|
+
* 0 `<meta http-equiv="content-security-policy" ...>`
|
|
250
253
|
*
|
|
251
254
|
* All other tags have a default priority of 10: `<meta>`, `<script>`, `<link>`, `<style>`, etc
|
|
252
255
|
*/
|
|
@@ -342,7 +345,7 @@ interface BaseMeta extends Omit<Meta$1, 'content'> {
|
|
|
342
345
|
*
|
|
343
346
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content
|
|
344
347
|
*/
|
|
345
|
-
content?: MaybeArray<Stringable
|
|
348
|
+
content?: MaybeArray<Stringable> | null;
|
|
346
349
|
}
|
|
347
350
|
type EntryAugmentation = undefined | Record<string, any>;
|
|
348
351
|
type MaybeFunctionEntries<T> = {
|