mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 02:30:34 +03:00
types: add json property (#439)
This commit is contained in:
Vendored
+11
-1
@@ -136,6 +136,16 @@ export interface ScriptPropertySrcCallback extends ScriptPropertyBase {
|
|||||||
callback: CallbackFn
|
callback: CallbackFn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type JsonVal = string | number | boolean | JsonObj | JsonObj[] | null
|
||||||
|
|
||||||
|
interface JsonObj {
|
||||||
|
[key: string]: JsonVal | JsonVal[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ScriptPropertyJson extends ScriptPropertyBase {
|
||||||
|
json: JsonObj
|
||||||
|
}
|
||||||
|
|
||||||
export interface NoScriptProperty extends MetaDataProperty {
|
export interface NoScriptProperty extends MetaDataProperty {
|
||||||
innerHTML: string,
|
innerHTML: string,
|
||||||
}
|
}
|
||||||
@@ -156,7 +166,7 @@ export interface MetaInfo {
|
|||||||
meta?: (MetaPropertyCharset | MetaPropertyEquiv | MetaPropertyName | MetaPropertyMicrodata | MetaPropertyProperty)[]
|
meta?: (MetaPropertyCharset | MetaPropertyEquiv | MetaPropertyName | MetaPropertyMicrodata | MetaPropertyProperty)[]
|
||||||
link?: (LinkPropertyBase | LinkPropertyHref | LinkPropertyHrefCallback)[]
|
link?: (LinkPropertyBase | LinkPropertyHref | LinkPropertyHrefCallback)[]
|
||||||
style?: StyleProperty[]
|
style?: StyleProperty[]
|
||||||
script?: (ScriptPropertyText | ScriptPropertySrc | ScriptPropertySrcCallback)[]
|
script?: (ScriptPropertyText | ScriptPropertySrc | ScriptPropertySrcCallback | ScriptPropertyJson)[]
|
||||||
noscript?: NoScriptProperty[]
|
noscript?: NoScriptProperty[]
|
||||||
|
|
||||||
__dangerouslyDisableSanitizers?: string[]
|
__dangerouslyDisableSanitizers?: string[]
|
||||||
|
|||||||
Reference in New Issue
Block a user