Skip to content

Commit e97458b

Browse files
authored
fix: update useHead definition to match @unhead/vue (#786)
1 parent f45b183 commit e97458b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/composables/head.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { onIonViewDidEnter, onIonViewDidLeave } from '@ionic/vue'
2-
import type { ActiveHeadEntry, UseHeadInput } from '@unhead/vue/types'
2+
import type { ActiveHeadEntry, UseHeadInput, UseHeadOptions } from '@unhead/vue/types'
33
import type { useHead as _useHead } from '@unhead/vue'
44
import { onBeforeUnmount } from 'vue'
55
import { useRoute, useRouter } from 'vue-router'
@@ -15,7 +15,7 @@ let currPath: string
1515
let prevPath: string
1616

1717
// eslint-disable-next-line @typescript-eslint/no-explicit-any
18-
export function useHead<T extends Record<string, any>>(obj: UseHeadInput<T>) {
18+
export function useHead<T extends Record<string, any>>(obj: UseHeadInput<T>, _?: UseHeadOptions) {
1919
const currentPath = useRoute().path
2020
const activeHead = injectHead()
2121
const { currentRoute } = useRouter()

0 commit comments

Comments
 (0)