@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
17 lines (15 loc) • 345 B
JavaScript
import {
ofConstruct
} from "./chunk-ZPNFXK7Y.mjs";
// src/utils/State.ts
var State = class {
constructor(state = {}) {
this.state = state;
}
get = (key, alt) => this.state[key] ?? (this.state[key] = ofConstruct(alt));
set = (key, value) => this.get(key, value);
};
export {
State
};
//# sourceMappingURL=chunk-WJZFE5NE.mjs.map