Libraries
    Preparing search index...

    Type Alias UnionSchemaValidationResult<T, TOptions>

    UnionSchemaValidationResult: ValidationResult<T> & {
        getNestedErrors(): OptionValidationResults<TOptions> & NestedValidationResult<
            any,
            any,
            any,
        >;
    }

    Validation result type returned by UnionSchemaBuilder.validate(). Extends ValidationResult with:

    • getNestedErrors for root-level union errors and per-branch validation results

    Type Parameters

    • T
    • TOptions extends readonly SchemaBuilder<any, any, any, any, any>[]

    Type Declaration

    • getNestedErrors: function
      • Returns root-level union validation errors combined with per-branch validation results. The returned value has both NestedValidationResult properties (errors, isValid, descriptor, seenValue) and tuple-indexed branch results ([0], [1], etc.).

        Returns OptionValidationResults<TOptions> & NestedValidationResult<any, any, any>