11import type { WebStreamableHeadContext } from 'unhead/stream/server'
2- import type { CreateStreamableServerHeadOptions , ResolvableHead , SSRHeadPayload } from 'unhead/types'
3- import type { VueHeadClient } from '../types'
2+ import type { CreateStreamableServerHeadOptions , SSRHeadPayload } from 'unhead/types'
3+ import type { UseHeadInput , VueHeadClient } from '../types'
44import {
55 createStreamableHead as _createStreamableHead ,
66 renderSSRHeadSuspenseChunk ,
@@ -13,11 +13,11 @@ import { VueResolver } from '../resolver'
1313 * Vue-specific context returned by createStreamableHead.
1414 * Extends WebStreamableHeadContext with Vue-specific head type.
1515 */
16- export interface VueStreamableHeadContext extends Omit < WebStreamableHeadContext < ResolvableHead > , 'head' > {
16+ export interface VueStreamableHeadContext extends Omit < WebStreamableHeadContext < UseHeadInput > , 'head' > {
1717 /**
1818 * The Vue head instance to use with app.use(head)
1919 */
20- head : VueHeadClient < any , SSRHeadPayload >
20+ head : VueHeadClient < UseHeadInput , SSRHeadPayload >
2121}
2222
2323/**
@@ -52,13 +52,13 @@ export interface VueStreamableHeadContext extends Omit<WebStreamableHeadContext<
5252 * ```
5353 */
5454export function createStreamableHead (
55- options : Omit < CreateStreamableServerHeadOptions , 'propsResolver ' > = { } ,
55+ options : Omit < CreateStreamableServerHeadOptions , 'propResolvers ' > = { } ,
5656) : VueStreamableHeadContext {
5757 const { head } = _createStreamableHead ( {
5858 ...options ,
5959 propResolvers : [ VueResolver ] ,
6060 } )
61- const vueHead = head as VueHeadClient < any , SSRHeadPayload >
61+ const vueHead = head as VueHeadClient < UseHeadInput , SSRHeadPayload >
6262 vueHead . install = vueInstall ( vueHead )
6363
6464 const flushPatch = ( ) => {
0 commit comments