My Vue component relies on an array of objects as a prop and I always make use of prop validation, especially for setting default values.
In this case, my current setup is:
props: {
items: Array
}
However, I would prefer it to resemble something like what we see in Typescript or React:
props: {
items: Array.of(
{key: {type: String, default: 'myText'}}
)
}
Is there a way to accomplish this? If not, I might have to resort to using computed data to map the defaults.