(value: unknown)
| 319 | |
| 320 | // Helper to extract item config from a payload. |
| 321 | const isRecord = (value: unknown): value is Record<string, unknown> => |
| 322 | typeof value === "object" && value !== null && !Array.isArray(value); |
| 323 | |
| 324 | function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) { |
| 325 | if (!isRecord(payload)) { |
no outgoing calls
no test coverage detected