I'm sure I got line 2 here all wrong, can anyone take a look at this code snippet to see what could be improved?
export default async function Home() {
let todoTasks: { id: string; todoTask: string }[] = [];
const todoTasksIter = tableClient.listEntities();
let i = 1;
for await (const entity of todoTasksIter) {
i++;
todoTasks.push({ id: entity.rowKey!, todoTask: entity.todo as string });
}
}