package.dist.chunks.mermaid.esm.chunk-YJGJQOYZ.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mermaid Show documentation
Show all versions of mermaid Show documentation
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
The newest version!
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
};