Skip to content

Commit

Permalink
chore: failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 13, 2023
1 parent 5387fbd commit 8e5ea28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Head.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error broken types
import { Head } from '@unhead/vue/components'

export { Head }
2 changes: 2 additions & 0 deletions src/createHead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends MergeHead = {}>(initHeadObject?: Head<T>, options?: CreateHeadOptions): VueHeadClientPollyFill<T> {
Expand Down
6 changes: 4 additions & 2 deletions src/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <T extends MergeHead = {}>(head: HeadClient<T>) => renderSSRHead(head.unhead)
export const renderHeadToString = <T extends MergeHead = {}>(head: VueHeadClientPollyFill<T>) => renderSSRHead(head.unhead)
export type HeadObjectPlain = Head
export type HeadObject = ReactiveHead

0 comments on commit 8e5ea28

Please sign in to comment.