Open
Description
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
//
What is expected?
//type error
defineComponent(
(props:{},ctx:SetupContext<[],SlotsType<{foo:string}>>)=>{
return ()=>h('div')
}
)
What is actually happening?
Type '{ attrs: Data; slots: Readonly<InternalSlots>; emit: (event: string, ...args: any[]) => void; expose: (exposed?: Record<string, any> | undefined) => void; }' is not assignable to type '{ attrs: Data; slots: Readonly<{ foo: Slot<string>; }>; emit: (event: never, ...args: any[]) => void; expose: (exposed?: Record<string, any> | undefined) => void; }'.
System Info
No response
Any additional comments?
No response