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
import{defineComponent,onBeforeMount}from'@vue/composition-api'exportdefaultdefineComponent({props: {handler: {type: Function,required: true}},setup(props){onBeforeMount(()=>{// ts tell me handler type is never, but actually it is a functionprops.handler()})}})
The text was updated successfully, but these errors were encountered:
this case can explain by next link.It seems to ExtractFunctionPropType type cause this case.So maybe we should rewrite ExtractFunctionPropType like this.
Uh oh!
There was an error while loading. Please reload this page.
Dependencies
vue version: 2.6.14
@vue/composition-api: 1.7.1(latest)
background
we all know vue2.x prop check support Function.

like this case,Function type infer to never
The text was updated successfully, but these errors were encountered: