add hw2
This commit is contained in:
24
node_modules/mermaid/dist/chunks/mermaid.esm/chunk-YJGJQOYZ.mjs
generated
vendored
Normal file
24
node_modules/mermaid/dist/chunks/mermaid.esm/chunk-YJGJQOYZ.mjs
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user