Creates a schema that generates a value only if a condition based on the parent object is met.
If the condition is not met, it generates undefined.
Primarily used within f.object.
Type Parameters
ParentType = unknown
The expected type of the parent object being built (used in the condition function). Defaults to unknown.
Creates a schema that generates a value only if a condition based on the parent object is met. If the condition is not met, it generates
undefined
. Primarily used withinf.object
.