I have an existing Vue component with multiple props which are declared in an array without types:
props: ["prop1", "prop2"]
I'd now like to add a new prop with the type Boolean
. This requires me to change the array to an object and set the type for the existing properties.
props: {
"prop1": ???,
"prop2": ???,
"newProp": Boolean
}
What type do I need to choose in place of ???
so that nothing is changed in regards to those props? I assume Object
, but I can't find any documentation to confirm that.