Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/runtime/composables/head.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { onIonViewDidEnter, onIonViewDidLeave } from '@ionic/vue'
import type { ActiveHeadEntry, UseHeadInput } from '@unhead/vue/types'
import type { ActiveHeadEntry, UseHeadInput, UseHeadOptions } from '@unhead/vue/types'
import type { useHead as _useHead } from '@unhead/vue'
import { onBeforeUnmount } from 'vue'
import { useRoute, useRouter } from 'vue-router'
Expand All @@ -15,7 +15,7 @@
let prevPath: string

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function useHead<T extends Record<string, any>>(obj: UseHeadInput<T>) {
export function useHead<T extends Record<string, any>>(obj: UseHeadInput<T>, _?: UseHeadOptions) {

Check warning on line 18 in src/runtime/composables/head.ts

View check run for this annotation

Codecov / codecov/patch

src/runtime/composables/head.ts#L18

Added line #L18 was not covered by tests
const currentPath = useRoute().path
const activeHead = injectHead()
const { currentRoute } = useRouter()
Expand Down