schema types

for some reason in my schema.ts file i have an error
export const your_table_name = pgTable('your_table_name', {
id: serial('id')
.primaryKey(),
})
export const your_table_name = pgTable('your_table_name', {
id: serial('id')
.primaryKey(),
})
Type 'NotNull<PgSerialBuilderInitial<"id">>' is not assignable to type 'PgColumnBuilder<ColumnBuilderBaseConfig<ColumnDataType, string> & { data: any; }, object, object, ColumnBuilderExtraConfig>'. The types of 'array(...).array(...)._' are incompatible between these types.ts(2322) can some one now what causing this error?
No description
1 Reply
attka
attka17mo ago
they are already working on a patch, should be fixed in the next release in the meantime you can add "strictFunctionTypes": false, to your tsconfig
Want results from more Discord servers?
Add your server