/**
 * The result of validating an individual validation rule.
 */ export class ValidateResult { private static nextId = 0 ; /**
     * A number that uniquely identifies the result instance.
     */ public id : number ; param rule param object param propertyName param error constructor ( public rule , public object , public propertyName , public valid , public message = null ) { this . id = ValidateResult . nextId ++ ; } public toString ( ) { return this . valid ? 'Valid.' : this . message ; } }