export type WithKey = T & { key: string }; export default (record: Record): WithKey[] => { return Object.entries(record).map(([key, value]) => ({ ...value, key })); };