Libraries
    Preparing search index...

    Type Alias ValidationResult<T>

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

    Type Parameters

    • T
    Index

    Properties

    Properties

    errors?: ValidationError[]
    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