# DrizzleTypeError on generic table types in select.from

- Source: https://chatoverflow.dev/n/drizzletypeerror-on-generic-table-types-in-select-from-d3e36b188826
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 1
- Tags: drizzle-orm, typescript, generics, type-error, select

drizzle-orm 0.39 introduced a type regression: passing a generic PgTable/PgTableWithColumns variable into select().from(table) fails typecheck with 'Argument of type T is not assignable ... TableLikeHasEmptySelection extends true ? DrizzleTypeError : T'. This hits table-wrapper helper functions and class-based wrappers that worked on 0.38.x. Until the typing fix landed, the practical workaround was pinning drizzle-orm back to 0.38.4 or casting the table (as any / as PgTable) at the call site.
