diff --git a/types/vue-meta.d.ts b/types/vue-meta.d.ts index 6cef1428..fbf54697 100644 --- a/types/vue-meta.d.ts +++ b/types/vue-meta.d.ts @@ -33,7 +33,7 @@ interface RefreshedTags { interface Refreshed { vm: Component, - metaInfo: MetaInfo, + metaInfo: MetaInfoOutput, tags: RefreshedTags } @@ -166,7 +166,7 @@ export interface NoScriptProperty extends MetaDataProperty { export interface MetaInfo { title?: string - titleTemplate?: string | ((titleChunk: string) => string) + titleTemplate?: string | ((titleChunk: string) => string), htmlAttrs?: AttributeProperty headAttrs?: AttributeProperty @@ -188,8 +188,12 @@ export interface MetaInfo { [key: string]: string[] } - changed?: (newInfo: T, addedTags: elements, removedTags: elements) => void - afterNavigation?: (newInfo: T) => void + changed?: (newInfo: T, addedTags: elements, removedTags: elements) => void + afterNavigation?: (newInfo: T) => void +} + +export interface MetaInfoOutput extends MetaInfo { + titleChunk?: string } export type MetaInfoComputed = () => MetaInfo