In yup's doc I could not find anything for validating tuple arrays and alternative objects. How would an object like this be validated in yup?
interface Example {
tuple: string[]; // always two elements
alt: { foo: string; } | { bar: string; }
}