UNPKG

@benev/slate

Version:
14 lines 524 B
import { Historian } from "./historian.js"; import { watch } from "../../nexus/state.js"; export class AppCore { #tree; #historian; get state() { return this.#tree.state; } get history() { return this.#historian.history; } get actions() { return this.#historian.actions; } constructor(params) { this.#tree = watch.stateTree(params.initial_state); this.#historian = new Historian(this.#tree, params.actions_blueprint, params.history_limit); } } //# sourceMappingURL=app_core.js.map