Is there any way to track nested property types on Vue?
I have this props setup:
// ...
props: {
navigation: {
type: [Array],
default: () => {
return [
{ type: String, icon: "home" },
{ type: String, icon: "star" }
]
}
}
}
right now i have validation only for first level which is array, but nothing happens inside of it. Can i check types inside one of type level? Thx for help.
defaultfunction?navigationto be? You have currently said it's type should be an Array but the default function you have defined returns an array of objects (with keys type and icon). Note from the examples in the docs you posted it doesn't look like you type the return value from the default function.