Skip to content

Error TS2339: Property 'value' does not exist on type 'ValidationError’  #795

@francjohny

Description

@francjohny

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions