TS error: Argument of type PgTableWithColumns is not assignable to parameter of type AnyPgTable
Hi all, after updating to latest i'm getting this TS error. This is my db creation and schema.
import { User } from './schemas/user';
const queryClient = postgres(DATABASE_URL);
const db = drizzle(queryClient, { schema: { User } });
export type DB = typeof db;
db.select().from(User);