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

Function set

packages/graph/src/Graph.ts:833–835  ·  view source on GitHub ↗

* Set a property of the element. * @param key The key of the property. * @param value The value of the property.

(key: TKey, value: TProperties[TKey])

Source from the content-addressed store, hash-verified

831 * @param value The value of the property.
832 */
833 public set<TKey extends keyof TProperties>(key: TKey, value: TProperties[TKey]): void {
834 this.#graph.updateProperty(this.id, key as string, value);
835 }
836
837 /**
838 * A string representation of the element.

Callers

nothing calls this directly

Calls 1

updatePropertyMethod · 0.65

Tested by

no test coverage detected