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

Function getHtmlEl

packages/sdk/src/engine/variableModel.ts:12–14  ·  view source on GitHub ↗
(document: Document)

Source from the content-addressed store, hash-verified

10type VariableDecl = { id: string; default?: unknown; [key: string]: unknown };
11
12function getHtmlEl(document: Document): Element | null {
13 return (document as Document & { documentElement?: Element }).documentElement ?? null;
14}
15
16/** Parse the variable declaration array, or null when absent/invalid. */
17function readDecls(document: Document): { htmlEl: Element; arr: VariableDecl[] } | null {

Callers 1

readDeclsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected