Skip to content

Commit

Permalink
fix(schema): simplify titleTemplate function
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 12, 2022
1 parent 6c18d6d commit fea656a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schema-vue/src/schema.ts
Expand Up @@ -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<E extends MergeHead = MergeHead> {
/**
Expand All @@ -17,7 +18,7 @@ export interface ReactiveHead<E extends MergeHead = MergeHead> {
/**
* Generate the title from a template.
*/
titleTemplate?: Head<E>['titleTemplate'] | ((title?: string | null) => Head<E>['titleTemplate'])
titleTemplate?: Head<E>['titleTemplate'] | Ref<Head<E>['titleTemplate']> | ((title?: string) => Head<E>['titleTemplate'])
/**
* The <base> HTML element specifies the base URL to use for all relative URLs in a document.
* There can be only one <base> element in a document.
Expand Down

0 comments on commit fea656a

Please sign in to comment.