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
However, as soon as I add as PropType<Options> to the mix, I get an error in Vetur and Vue CLI serve:
No overload matches this call.
Overload 1 of 2, '(options: ComponentOptionsWithoutProps<never, unknown>): VueProxy<never, unknown>', gave the following error.
Type '{ value: { type: BooleanConstructor; default: null; }; readonly: { type: BooleanConstructor; default: boolean; }; options: { type: PropType<Options>; default: boolean; }; }' is not assignable to type 'undefined'.
I saw that #208 mentioned adding support for the above for function calls, but I'm wondering if the "original" functionality exists in the Composition API to begin with.
Is what I'm trying to do supported, or am I using it wrong? If that's the case, how can one type Object type props properly in TypeScript? Thanks for all your great work 🙂
The text was updated successfully, but these errors were encountered:
As per vuejs/vue#9692 (comment), I expected to be able to type Object props using TypeScript as follows:
However, as soon as I add
as PropType<Options>
to the mix, I get an error in Vetur and Vue CLI serve:I saw that #208 mentioned adding support for the above for function calls, but I'm wondering if the "original" functionality exists in the Composition API to begin with.
Is what I'm trying to do supported, or am I using it wrong? If that's the case, how can one type Object type props properly in TypeScript? Thanks for all your great work 🙂
The text was updated successfully, but these errors were encountered: