Yup ObjectSchema with a TypeScript union type Say I have two types, BasicUser and AdminUser that are unioned into one type User.