import type { CounterType } from '../types/types.js'; export function appendDistinctValue( values: Record, key: string, ) { if (!values[key]) { values[key] = { key, count: 0, }; } values[key].count++; }