@siren-js/client
Version:
Siren API client library
20 lines (19 loc) • 481 B
JavaScript
/** 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 {
}