Files
infocom-systems-design/node_modules/mermaid/dist/chunks/mermaid.esm/chunk-YJGJQOYZ.mjs
2025-10-03 22:27:28 +03:00

25 lines
398 B
JavaScript

import {
__name
} from "./chunk-DLQEHMXD.mjs";
// src/utils/imperativeState.ts
var ImperativeState = class {
/**
* @param init - Function that creates the default state.
*/
constructor(init) {
this.init = init;
this.records = this.init();
}
static {
__name(this, "ImperativeState");
}
reset() {
this.records = this.init();
}
};
export {
ImperativeState
};