UNPKG

@siren-js/client

Version:
20 lines (19 loc) 481 B
/** Base class for representing the result of performing validation */ export class ValidationResult { } /** Represents successful validation */ export class PositiveValidationResult { } /** * Represents failed validation. Inherit from this class for a more detailed * result. * * @example * class GoofedValidation extends NegativeValidationResult { * constructor(readonly invalidFields: Field[]) { * super(); * } * } */ export class NegativeValidationResult { }