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
checkout tsx-typeerror branch of wonderful-panda/vue-next
Run build and test-dts
Below code is a simplified example.
mP1 should be optional, but treated as required in TSX.
constMixin=defineComponent({props: {mP1: {type: String,default: "a"}}})constMyComponent=defineComponent({mixins: [Mixin]}constelm=<MyComponent/>// TS2322 Property 'mP1' is missing/* extends also has same problem */constMyComponent2=defineComponent({extends: Mixin}constelm=<MyComponent2/>// TS2322 Property 'mP1' is missing
What is expected?
no error (mP1 is treated as optional)
What is actually happening?
mP1 is treated as required and compilation error TS2322 occurred.
The text was updated successfully, but these errors were encountered:
Version
3.0.0-rc.9
Reproduction link
https://github.com/wonderful-panda/vue-next/blob/tsx-typeerror/test-dts/defineComponent.test-d.tsx#L667-L669
Steps to reproduce
tsx-typeerror
branch ofwonderful-panda/vue-next
Below code is a simplified example.
mP1 should be optional, but treated as required in TSX.
What is expected?
no error (mP1 is treated as optional)
What is actually happening?
mP1 is treated as required and compilation error TS2322 occurred.
The text was updated successfully, but these errors were encountered: