Current Behavior
Accessing property in union of object types fails for properties not defined on all union members.
error TS2339: Property 'value' does not exist on type 'ValidationError'.
Property 'value' does not exist on type '{ location?: undefined; param: "_error"; msg: any; nestedErrors: ValidationError[]; }'.
Possible Solution
#794
Environment
TypeScript v3.7.2