Type error in 0.33.0

export const cities = pgTable("cities", {
id: serial("id").primaryKey(),
name: varchar("name", { length: 256 }),
});
export const cities = pgTable("cities", {
id: serial("id").primaryKey(),
name: varchar("name", { length: 256 }),
});
Argument type {name: PgVarcharBuilder<{name: "name", dataType: "string", columnType: "PgVarchar", data: [string, ...string[]][number], driverParam: string, enumValues: [string, ...string[]], generated: undefined}>, id: PgSerialBuilder & {: {notNull: true}} & {: {isPrimaryKey: true}}} is not assignable to parameter type Record<string, PgColumnBuilderBase> Setting the id with .primaryKey throws a type error.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server