Zephury
Zephury
DTDrizzle Team
Created by Zephury on 11/20/2023 in #help
I swear this infer was working... am I crazy?
export type User = typeof user.$inferSelect;

export const user = pgTable('user', {
id: bigint('id', { mode: 'bigint' }).primaryKey(),
...rest of table
export type User = typeof user.$inferSelect;

export const user = pgTable('user', {
id: bigint('id', { mode: 'bigint' }).primaryKey(),
...rest of table
I swear for a few days, the exported User type was working just fine. Suddenly, it is always "any" am I remembering wrong, or is this supposed to work?
14 replies