How to extend props types for a wrapper component with fallthrough attributes? #8902
Unanswered
ThomasKientz
asked this question in
Help/Questions
Replies: 2 comments 3 replies
-
type VAutocompleteProps = InstanceType<typeof VAutocomplete>['$props']; |
Beta Was this translation helpful? Give feedback.
3 replies
-
See vuejs/rfcs#477. Discussion is welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating a wrapper around a Vuetify component with fallthrough attributes which are passed to the base component.
I would like the types of my wrapper to extends the type of the base component. I have tried with :
But it throws the following error in the node console, IDE types are good though.
I am using vue 3.3.4 and typescript 5.1.6.
Any ideas ?
Beta Was this translation helpful? Give feedback.
All reactions