Libraries
    Preparing search index...

    Type Alias NestedValidationResult<TSchema, TRootSchema, TParentPropertyDescriptor>

    Used to represent a validation result for nested objects/properties. Contains a list of errors and the value that caused them.

    type NestedValidationResult<
        TSchema,
        TRootSchema extends ObjectSchemaBuilder<any, any, any, any, any>,
        TParentPropertyDescriptor,
    > = {
        errors: ReadonlyArray<string>;
        isValid: boolean;
        seenValue?: InferType<TSchema>;
        get descriptor(): PropertyDescriptorInner<
            TRootSchema,
            TSchema,
            TParentPropertyDescriptor,
        >;
    }

    Type Parameters

    • TSchema
    • TRootSchema extends ObjectSchemaBuilder<any, any, any, any, any>
    • TParentPropertyDescriptor
    Index

    Properties

    Accessors

    Properties

    errors: ReadonlyArray<string>

    A list of errors, empty if object satisfies a schema

    isValid: boolean

    Whether validation passed for this property and all of its children.

    seenValue?: InferType<TSchema>

    Value that property had and which caused error or errors

    Accessors