Type alias ValidationResult<T>

ValidationResult<T>: {
    errors?: ValidationError[];
    object?: T;
    valid: boolean;
}

Type Parameters

  • T

Type declaration

  • Optional errors?: ValidationError[]
  • Optional object?: T

    Contains validated object. Can be different (if there are any preprocessors in the schema) from object passed to the validate method of the SchemaBuilder class.

  • valid: boolean

    If true - object satisfies schema

Generated using TypeDoc