@mojojs/core
Version:
Real-time web framework
16 lines (15 loc) • 328 B
TypeScript
import type { ValidationError } from '../types.js';
/**
* Validation result class.
*/
export declare class ValidatorResult {
/**
* Validation errors.
*/
errors: ValidationError[];
/**
* Validation result.
*/
isValid: boolean;
constructor(isValid: boolean, errors: ValidationError[]);
}