@@ -80,6 +80,7 @@ export type VaporSetupFn<
8080 Emits extends EmitsOptions = { } ,
8181 Slots extends StaticSlots = StaticSlots ,
8282 Exposed extends Record < string , any > = Record < string , any > ,
83+ TypeBlock extends Block = Block ,
8384> = (
8485 props : Readonly < Props > ,
8586 ctx : {
@@ -88,7 +89,7 @@ export type VaporSetupFn<
8889 attrs : Record < string , any >
8990 expose : < T extends Record < string , any > = Exposed > ( exposed : T ) => void
9091 } ,
91- ) => Block | Exposed | Promise < Exposed > | void
92+ ) => TypeBlock | Exposed | Promise < Exposed > | void
9293
9394export type FunctionalVaporComponent = VaporSetupFn &
9495 Omit < ObjectVaporComponent , 'setup' > & {
@@ -111,7 +112,7 @@ export interface ObjectVaporComponent<
111112 props ?: Props
112113 emits ?: Emits | RuntimeEmitsKeys [ ]
113114 slots ?: Slots
114- setup ?: VaporSetupFn < InferredProps , Emits , Slots , Exposed >
115+ setup ?: VaporSetupFn < InferredProps , Emits , Slots , Exposed , TypeBlock >
115116 render ?(
116117 ctx : Exposed extends Block ? undefined : ShallowUnwrapRef < Exposed > ,
117118 props : Readonly < InferredProps > ,
0 commit comments