import { ValidationError, ValidationResult } from './types'; export let success = (value: T): ValidationResult => ({ success: true, value }); export let error = (errors: ValidationError[]): ValidationResult => ({ success: false, errors });