mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 18:32:27 +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
|
||||
}
|
||||
|
||||
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 {
|
||||
innerHTML: string,
|
||||
}
|
||||
@@ -156,7 +166,7 @@ export interface MetaInfo {
|
||||
meta?: (MetaPropertyCharset | MetaPropertyEquiv | MetaPropertyName | MetaPropertyMicrodata | MetaPropertyProperty)[]
|
||||
link?: (LinkPropertyBase | LinkPropertyHref | LinkPropertyHrefCallback)[]
|
||||
style?: StyleProperty[]
|
||||
script?: (ScriptPropertyText | ScriptPropertySrc | ScriptPropertySrcCallback)[]
|
||||
script?: (ScriptPropertyText | ScriptPropertySrc | ScriptPropertySrcCallback | ScriptPropertyJson)[]
|
||||
noscript?: NoScriptProperty[]
|
||||
|
||||
__dangerouslyDisableSanitizers?: string[]
|
||||
|
||||
Reference in New Issue
Block a user