MCPcopy Create free account
hub / github.com/Make-md/makemd / constructor

Method constructor

src/core/superstate/api.ts:37–40  ·  view source on GitHub ↗
(superstate: ISuperstate, spaceManager?: SpaceManager | SpaceManagerInterface | APISpaceManager)

Source from the content-addressed store, hash-verified

35 private superstate: ISuperstate;
36 private spaceManager: SpaceManager | SpaceManagerInterface | APISpaceManager; // Can be SpaceManager, SpaceManagerInterface or SpaceManagerContext
37 public constructor(superstate: ISuperstate, spaceManager?: SpaceManager | SpaceManagerInterface | APISpaceManager) {
38 this.superstate = superstate;
39 this.spaceManager = spaceManager || superstate.spaceManager;
40 }
41 public frame = {
42update: (property: string, value: string, path: string, saveState: (state: any) => void) => {
43 if (property.startsWith("$contexts")) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected