UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

30 lines (28 loc) 488 B
import { asString } from "./chunk-NNA77YYC.mjs"; import { isDefined } from "./chunk-AAND4MKF.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-S3NSPQ7M.mjs.map