diff --git a/packages/schema-vue/src/schema.ts b/packages/schema-vue/src/schema.ts index c4a6281..fccdc88 100644 --- a/packages/schema-vue/src/schema.ts +++ b/packages/schema-vue/src/schema.ts @@ -5,6 +5,7 @@ import type { } from '@zhead/schema' import type { MaybeComputedRef } from '@vueuse/shared' import type { MaybeComputedRefEntries, MaybeDeeplyComputedRefArray } from './types' +import {Ref} from "vue"; export interface ReactiveHead { /** @@ -17,7 +18,7 @@ export interface ReactiveHead { /** * Generate the title from a template. */ - titleTemplate?: Head['titleTemplate'] | ((title?: string | null) => Head['titleTemplate']) + titleTemplate?: Head['titleTemplate'] | Ref['titleTemplate']> | ((title?: string) => Head['titleTemplate']) /** * The HTML element specifies the base URL to use for all relative URLs in a document. * There can be only one element in a document.