(message: string)
| 2 | import type { ChartGPUInstance, ChartGPUOptions, DataPoint } from '../../src/index'; |
| 3 | |
| 4 | const showError = (message: string): void => { |
| 5 | const el = document.getElementById('error'); |
| 6 | if (!el) return; |
| 7 | el.textContent = message; |
| 8 | el.style.display = 'block'; |
| 9 | }; |
| 10 | |
| 11 | // Type guard for the tuple form of DataPoint. We define this explicitly because `Array.isArray(...)` |
| 12 | // narrows to `any[]`, which does not reliably narrow `readonly [...]` tuples in strict TS configs. |
no outgoing calls
no test coverage detected