/** * The keys of a map keyed by an enum (labels, counts ...), typed: * `Record` has exactly the keys `T`, so this is the one place that * assertion is made - callers need no `Object.keys(...) as T[]` cast. */ export function keysOf(record: Readonly>): T[] { return Object.keys(record) as T[]; }