MCPcopy Create free account
hub / github.com/cedriking/spark / constructor

Method constructor

src/module/module-instance.ts:7–10  ·  view source on GitHub ↗
(
    private moduleManager: ModuleManager,
    public moduleDef: ModuleDefinition<S, A>
  )

Source from the content-addressed store, hash-verified

5 private _state: S | undefined;
6
7 constructor(
8 private moduleManager: ModuleManager,
9 public moduleDef: ModuleDefinition<S, A>
10 ) {}
11
12 get state(): S {
13 if (!this.moduleDef.createState) return undefined as S;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected