Issue with type declaration

43 views Asked by At

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 });
  }
}
0

There are 0 answers