extendsObject< ExtendedObjectT extends Record<string, any>, ObjectT extends Record<string, any>, ExtendedObjectInferT extends ObjectInference = "infer", ObjectInferT extends ObjectInference = "infer", OutInferT extends ObjectInference = ExtendedObjectInferT | ObjectInferT,>( baseSchema: ObjectSchema<ExtendedObjectT, ExtendedObjectInferT>, subSchema: ObjectSchema<ObjectT, ObjectInferT>,): ObjectSchema<ExtendedObjectT & ObjectT, OutInferT>
Creates an object type that extends another object type