MCPcopy Create free account
hub / github.com/codemix/graph / constructor

Method constructor

packages/y-graph-storage/src/YGraphStorage.ts:36–41  ·  view source on GitHub ↗
(doc: Y.Doc, config: YGraphStorageConfig)

Source from the content-addressed store, hash-verified

34 #edgeIdentities: WeakMap<Y.Map<unknown>, StoredEdge>;
35
36 public constructor(doc: Y.Doc, config: YGraphStorageConfig) {
37 this.#doc = doc;
38 this.#config = config;
39 this.#vertexIdentities = new WeakMap();
40 this.#edgeIdentities = new WeakMap();
41 }
42
43 public get doc(): Y.Doc {
44 return this.#doc;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected