Why does drizzle allow different tables in the same statement?

It isn't clear to me why
await db.update(posts).set({ title }).where(eq(users.name, 'hello'));

doesnt throw a type error. shouldnt it be possible for typecript to infer that i need a
posts
table column in the where clause?
Was this page helpful?