How can we change a property's type based on another property's value? For instance, return a single item by default, and an array of items when a multiple
property is set. To demonstrate what I mean, see the recording below. Here, you can observe how the type changes based on the multiple
attribute.