Invoking typed instances of child component - Composition API + TypeScript #9123
-
I have a generic data table component that is written in TypeScript, but no way to validate field names or types because the row record definition is defined upstream, in the non-generic parent component:
Anyway, what I am wondering is if there is a means of using generics to pass
... or some permutation thereof. Thank you kindly in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Did you have a look at the Vue 3.3 generic components ? Here is an example of implementation : |
Beta Was this translation helpful? Give feedback.
Did you have a look at the Vue 3.3 generic components ?
Discussion #436
Here is an example of implementation :
https://dev.to/vincentdorian/vue-33-generic-types-and-when-to-use-them-5egn