diff --git a/src/components/Head.ts b/src/components/Head.ts index 26173fe..6c9f10f 100644 --- a/src/components/Head.ts +++ b/src/components/Head.ts @@ -1,3 +1,4 @@ +// @ts-expect-error broken types import { Head } from '@unhead/vue/components' export { Head } diff --git a/src/createHead.ts b/src/createHead.ts index b5169da..5e709b2 100644 --- a/src/createHead.ts +++ b/src/createHead.ts @@ -4,7 +4,9 @@ import type { CreateHeadOptions, Head, } from '@unhead/schema' +// @ts-expect-error broken types import type { VueHeadClientPollyFill } from '@unhead/vue/polyfill' +// @ts-expect-error broken types import { polyfillAsVueUseHead } from '@unhead/vue/polyfill' export function createHead(initHeadObject?: Head, options?: CreateHeadOptions): VueHeadClientPollyFill { diff --git a/src/legacy.ts b/src/legacy.ts index 83c7b37..7061e5b 100644 --- a/src/legacy.ts +++ b/src/legacy.ts @@ -3,9 +3,11 @@ import type { MergeHead, ReactiveHead } from '@unhead/vue' import type { Head } from '@unhead/schema' import { Vue2ProvideUnheadPlugin } from '@unhead/vue' import type { Plugin } from 'vue' -import type { HeadClient } from './createHead' + +// @ts-expect-error broken types +import type { VueHeadClientPollyFill } from '@unhead/vue/polyfill' export const HeadVuePlugin = Vue2ProvideUnheadPlugin as Plugin -export const renderHeadToString = (head: HeadClient) => renderSSRHead(head.unhead) +export const renderHeadToString = (head: VueHeadClientPollyFill) => renderSSRHead(head.unhead) export type HeadObjectPlain = Head export type HeadObject = ReactiveHead