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