Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: meta content types as string | null | undefined #755

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions types/vue-meta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,32 +73,32 @@ export interface MetaPropertyCharset extends MetaDataProperty {

export interface MetaPropertyEquiv extends MetaDataProperty {
httpEquiv: string,
content: string,
content: string | null | undefined,
template?: (chunk: string) => string
}

export interface MetaPropertyTrueEquiv extends MetaDataProperty {
'http-equiv': string,
content: string,
content: string | null | undefined,
template?: (chunk: string) => string
}

export interface MetaPropertyName extends MetaDataProperty {
name: string,
content: string,
content: string | null | undefined,
template?: (chunk: string) => string
}

export interface MetaPropertyMicrodata extends MetaDataProperty {
itemprop: string,
content: string,
content: string | null | undefined,
template?: (chunk: string) => string
}

// non-w3c interface
export interface MetaPropertyProperty extends MetaDataProperty {
property: string,
content: string,
content: string | null | undefined,
template?: (chunk: string) => string
}

Expand Down Expand Up @@ -143,7 +143,7 @@ export interface ScriptPropertyBase extends MetaDataProperty {
}

export interface ScriptPropertyText extends ScriptPropertyBase {
innerHTML: string
innerHTML: string | null | undefined
}

export interface ScriptPropertySrc extends ScriptPropertyBase {
Expand All @@ -167,7 +167,7 @@ export interface ScriptPropertyJson extends ScriptPropertyBase {
}

export interface NoScriptProperty extends MetaDataProperty {
innerHTML: string,
innerHTML: string | null | undefined,
}

export interface MetaInfo {
Expand Down