UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

30 lines (28 loc) 488 B
import { asString } from "./chunk-BDA5LB4S.mjs"; import { isDefined } from "./chunk-DEJ7A5PY.mjs"; // src/types/Value.ts var Value = class { constructor(value) { this.value = value; this.value = value; } get isValid() { return isDefined(this.value); } toJSON() { return this.value; } toString() { return asString(this.value); } }; var isValue = (v) => v instanceof Value; export { Value, isValue }; //# sourceMappingURL=chunk-WSBULPUZ.mjs.map