You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to return scoped slot without casting
What is actually happening?
I need to cast scoped slot return value to VNode[], otherwise it results in TS error:
Argument of type '{ functional: boolean; render: (h: CreateElement, { scopedSlots }: RenderContext<Record<never, any>>) => ScopedSlotChildren; }' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.
Object literal may only specify known properties, and 'functional' does not exist in type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.ts(2345)
The text was updated successfully, but these errors were encountered:
jacekkarczmarczyk
changed the title
return type of scopedSlots.foo({}) doesn't match the return value of render() in functional components
return type of scopedSlots.foo({}) doesn't match the return type of render() in functional components
Jul 14, 2019
Version
2.6.10
Reproduction link
https://jsfiddle.net/1yonhcvb/
Steps to reproduce
What is expected?
I should be able to return scoped slot without casting
What is actually happening?
I need to cast scoped slot return value to VNode[], otherwise it results in TS error:
Might be related to #9372
The text was updated successfully, but these errors were encountered: