(value: string | null | undefined)
| 14 | const AUTHORED_END_ATTR = "data-hf-authored-end"; |
| 15 | |
| 16 | function 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 | |
| 22 | function parseElementDurationAttr(element: Element): number | null { |
| 23 | return ( |
no outgoing calls
no test coverage detected