Type that represents an error when validating data passed to an API

interface ValidationError {
    message: string;
    type: "ValidationError";
}

Hierarchy (View Summary)

Properties

Properties

message: string

End user message describing the problem

type: "ValidationError"

Discriminated union tag