@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
24 lines • 1.07 kB
JavaScript
import { AbstractValidator, ValidationTarget } from "../internal.mjs";
/**
* Default implementation of `UnknownValidator`.
*
* @typeParam T - the type the value
*/
class UnknownValidatorImpl extends AbstractValidator {
/**
* @param scope - the application configuration
* @param configuration - the validator configuration
* @param name - the name of the value
* @param value - the value
* @param context - the contextual information set by a parent validator or the user
* @param failures - the list of validation failures
* @throws TypeError if `name` is `undefined` or `null`
* @throws RangeError if `name` contains whitespace, or is empty
* @throws AssertionError if `scope`, `configuration`, `value`, `context` or `failures` are null
*/
constructor(scope, configuration, name, value, context, failures) {
super(scope, configuration, name, value, context, failures);
}
}
export { UnknownValidatorImpl };
//# sourceMappingURL=UnknownValidatorImpl.mjs.map