Documentation
    Preparing search index...

    Failed validation result with error details.

    Indicates the input did not match the expected type. Contains the original data and an array of all validation errors found.

    interface IFailure {
        data: unknown;
        errors: IValidation.IError[];
        success: false;
    }
    Index

    Properties

    Properties

    data: unknown

    The original input that failed validation.

    Preserved as unknown type since it didn't match the expected type. Useful for debugging or logging the actual value.

    Array of validation errors.

    Contains one entry for each validation failure found. Multiple errors may exist if the input has multiple type mismatches.

    success: false

    Success discriminator.

    Always false for failed validations. Use this to narrow the type before accessing errors.