@cowwoc/requirements
Version:
A fluent API for enforcing design contracts with automatic message generation.
22 lines • 568 B
JavaScript
import { assertThatValueIsNotNull } from "../validator/Objects.mjs";
/**
* Wraps a String to prevent it from being quoted when used as a context value.
*/
class UnquotedStringValue {
value;
/**
* Creates a new instance.
*
* @param value - the string
* @throws TypeError if `value` is null
*/
constructor(value) {
assertThatValueIsNotNull(value, "value");
this.value = value;
}
toString() {
return this.value;
}
}
export { UnquotedStringValue };
//# sourceMappingURL=UnquotedStringValue.mjs.map