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
{{ message }}
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
I use the type parameter of ExtendedVue to complete compile-time validation of props. Currently, the SFC export component as VueConstructor type which does not support it and result in:
TS2322: Type 'VueConstructor<Vue>' is not assignable to type 'RenderDefType<unknown, unknown, unknown, DecoderPropsType>'.
Type 'VueConstructor<Vue>' is not assignable to type 'ExtendedVue<Vue, unknown, unknown, unknown, DecoderPropsType>'.
Type 'Vue' is not assignable to type 'DecoderPropsType & Vue'.
Property 'data' is missing in type 'Vue' but required in type 'DecoderPropsType'.
What does the proposed API look like?
I am using Vue.extend in SFC which holds all type information.
What problem does this feature solve?
I use the type parameter of ExtendedVue to complete compile-time validation of props. Currently, the SFC export component as VueConstructor type which does not support it and result in:
What does the proposed API look like?
I am using
Vue.extend
in SFC which holds all type information.Just merge the type with Vue?
The text was updated successfully, but these errors were encountered: