UNPKG

@accounter/shaam6111-generator

Version:

Fully typed application that generates, parses, and validates SHAAM 6111 tax reports.

40 lines (39 loc) 1.05 kB
/** * Validation Result interface for reporting validation errors * @export * @interface ValidationResult */ export interface ValidationResult { /** Whether the validation passed successfully */ isValid: boolean; /** List of validation error messages */ errors?: ValidationError[]; } /** * Validation Error interface for detailed error information * @export * @interface ValidationError */ export interface ValidationErrorDetails { /** Error or warning code */ code?: string; /** Error or warning message */ message: string; /** Field or section where the error occurred */ path?: string; /** Value that caused the error */ value?: unknown; } /** * Custom error class for validation errors. */ export declare class ValidationError extends Error { errors: ValidationErrorDetails[]; constructor(message: string, errors?: ValidationErrorDetails[]); } /** * Custom error class for parsing errors. */ export declare class ParsingError extends Error { constructor(message: string); }