Is there a way to define a property in
<script setup lang="ts">
that depends on another property?
For instance, how can I require a variable only if another variable is present?
I attempted using
defineProps<Props | PropsA>()
, but encountered an error stating that [@vue/compiler-sfc] type argument passed to defineProps() must be a literal type, or a reference to an interface or literal type.