From 8e5ea284e448ac05513ab1c934faeeac0cf9e865 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 13 Sep 2023 12:04:02 +0200 Subject: [PATCH] chore: failing build --- src/components/Head.ts | 1 + src/createHead.ts | 2 ++ src/legacy.ts | 6 ++++-- 3 files changed, 7 insertions(+), 2 deletions(-) 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