@zhead/schema
Advanced tools
Comparing version 0.5.1 to 0.5.2
declare type Stringable = string | boolean | number; | ||
interface BodyAttributes { | ||
/** | ||
* Any arbitrary keys such as `data-*`. | ||
*/ | ||
interface UnsafeKeys { | ||
[key: string]: Stringable; | ||
} | ||
interface HtmlAttributes { | ||
interface BodyAttributes extends UnsafeKeys { | ||
} | ||
interface HtmlAttributes extends UnsafeKeys { | ||
/** | ||
@@ -22,6 +21,2 @@ * The lang global attribute helps define the language of an element: the language that non-editable elements are | ||
dir: 'ltr' | 'rtl' | 'auto'; | ||
/** | ||
* Any arbitrary keys such as `data-*`. | ||
*/ | ||
[key: string]: Stringable; | ||
} | ||
@@ -149,5 +144,3 @@ | ||
} | ||
declare type LinkEntries = Partial<Link & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
declare type LinkEntries = Partial<Link & UnsafeKeys>[]; | ||
@@ -228,7 +221,7 @@ interface MetaFlat { | ||
*/ | ||
width: number | 'device-width'; | ||
width: number | string | 'device-width'; | ||
/** | ||
* Defines the height of the viewport. Not used by any browser. | ||
*/ | ||
height: number | 'device-height'; | ||
height: number | string | 'device-height'; | ||
/** | ||
@@ -241,3 +234,3 @@ * Defines the ratio between the device width | ||
*/ | ||
initialScale: number; | ||
initialScale: number | string; | ||
/** | ||
@@ -251,3 +244,3 @@ * Defines the maximum amount to zoom in. | ||
*/ | ||
maximumScale: number; | ||
maximumScale: number | string; | ||
/** | ||
@@ -260,3 +253,3 @@ * Defines the minimum zoom level. It must be smaller or equal to the maximum-scale or the behavior is undefined. | ||
*/ | ||
minimumScale: number; | ||
minimumScale: number | string; | ||
/** | ||
@@ -329,3 +322,3 @@ * If set to no, the user is unable to zoom in the webpage. | ||
*/ | ||
maxSnippet: number; | ||
maxSnippet: number | string; | ||
/** | ||
@@ -338,3 +331,3 @@ * Set the maximum size of an image preview for this page in a search results. | ||
*/ | ||
maxVideoPreview: number; | ||
maxVideoPreview: number | string; | ||
/** | ||
@@ -729,3 +722,3 @@ * Don't offer translation of this page in search results. | ||
refresh: string | { | ||
seconds: number; | ||
seconds: number | string; | ||
url: string; | ||
@@ -757,3 +750,3 @@ }; | ||
*/ | ||
content: MetaFlat[keyof MetaFlat] | string; | ||
content: MetaFlat[keyof MetaFlat] | string | number; | ||
/** | ||
@@ -772,3 +765,3 @@ * Defines a pragma directive. The attribute is named http-equiv(alent) because all the allowed values are names of | ||
*/ | ||
name: FixCase<ContentKeys<keyof MetaFlat>>; | ||
name: FixCase<ContentKeys<keyof MetaFlat>> | string; | ||
/** | ||
@@ -779,3 +772,3 @@ * The property attribute is used to define a property associated with the content attribute. | ||
*/ | ||
property: FixCase<PropertyKeys<keyof MetaFlat>>; | ||
property: FixCase<PropertyKeys<keyof MetaFlat>> | string; | ||
/** | ||
@@ -786,5 +779,3 @@ * @internal This property is used to dedupe the link tags | ||
} | ||
declare type MetaEntries = Partial<Meta & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
declare type MetaEntries = Partial<Meta & UnsafeKeys>[]; | ||
@@ -873,5 +864,3 @@ interface Script { | ||
} | ||
declare type ScriptEntries = Partial<Script & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
declare type ScriptEntries = Partial<Script & UnsafeKeys>[]; | ||
@@ -888,5 +877,3 @@ interface Noscript { | ||
} | ||
declare type NoscriptEntries = Partial<Noscript & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
declare type NoscriptEntries = Partial<Noscript & UnsafeKeys>[]; | ||
@@ -924,5 +911,3 @@ interface Style { | ||
} | ||
declare type StyleEntries = Partial<Style & { | ||
[key: string]: Stringable; | ||
}>[]; | ||
declare type StyleEntries = Partial<Style & UnsafeKeys>[]; | ||
@@ -929,0 +914,0 @@ interface Base { |
{ | ||
"name": "@zhead/schema", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"packageManager": "pnpm@7.8.0", | ||
@@ -5,0 +5,0 @@ "author": "Harlan Wilton <harlan@harlanzw.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41826
972