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

Function parseNum

packages/core/src/runtime/timeline.ts:16–20  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

14const AUTHORED_END_ATTR = "data-hf-authored-end";
15
16function parseNum(value: string | null | undefined): number | null {
17 if (value == null || value === "") return null;
18 const parsed = Number(value);
19 return Number.isFinite(parsed) ? parsed : null;
20}
21
22function parseElementDurationAttr(element: Element): number | null {
23 return (

Calls

no outgoing calls

Tested by

no test coverage detected