I'm manipulating an array and reducing that to an array of objects, with strings inside. My linter is mad at the keys, saying "Type 'string' is not assignable to type 'never'".
const newArr = arr.reduce((acc, curr) => {
acc.push({ id: `${curr}`, name: arr[curr].name});
return acc;
}, []);
How can I give this the proper type?