IntersectInput
Intersect input inference type.
// Create object schemas
const ObjectSchemas = [
object({ key1: transform(string(), (input) => input.length) }),
object({ key2: transform(string(), (input) => input.length) }),
];
// Infer object intersect input type
type ObjectInput = IntersectInput<typeof ObjectSchemas>; // { key1: string } & { key2: string }