MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / addElement

Method addElement

packages/sdk/src/session.ts:143–146  ·  view source on GitHub ↗
(parent: HfId | null, index: number, html: string)

Source from the content-addressed store, hash-verified

141 }
142
143 addElement(parent: HfId | null, index: number, html: string): HfId {
144 const result = this._dispatch({ type: "addElement", parent, index, html }, ORIGIN_LOCAL);
145 return result.meta?.newId ?? "";
146 }
147
148 setVariableValue(id: string, value: string | number | boolean | FontValue | ImageValue): void {
149 this.dispatch({ type: "setVariableValue", id, value });

Callers

nothing calls this directly

Calls 1

_dispatchMethod · 0.95

Tested by

no test coverage detected