Infer TS types with `sql` operator and `db.execute`
result.rows is of type ExecutedQuery.rows: Row[]Is there a way to tell ts that it's of Type
Todo[]?result.rowsExecutedQuery.rows: Row[]Todo[]const db = drizzle(connection);
export async function getTodos() {
const result = await db.execute<Todo>(sql`select * from ${todo}`);
return result.rows;
}