Condition function to check against the partially built parent object.
IMPORTANT: You MUST perform type checks or assertions on 'parent' inside this function
before accessing its properties, especially if ParentType is inferred or complex.
Example: condition: (parent) => typeof (parent as YourType).someProp === 'number' && (parent as YourType).someProp > 10
Condition function to check against the partially built parent object. IMPORTANT: You MUST perform type checks or assertions on 'parent' inside this function before accessing its properties, especially if ParentType is inferred or complex. Example:
condition: (parent) => typeof (parent as YourType).someProp === 'number' && (parent as YourType).someProp > 10