I want to have a prop as a generic type.
at the moment I have something like this.
props: {
items: {
type: Array as PropType<string[] | unknown[]>,
required: true,
},
}
and im looking for using a generic type T as a prop:
items: {
type: Array as PropType<string[] | T[]>,
required: true,
},
is there a way I can achieve that? thanks for coming by!