You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type 'PgTableWithColumns<{ name: "todos"; schema: undefined; columns: { id: PgColumn<{ name: "id"; tableName: "todos"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; ... 5 more ...; generated: undefined; }, {}, {}>; ... 4 more ...; userId: PgColumn<...>; }; d...' is not assignable to parameter of type 'Table<TableConfig<Column<any, object, object>>>'.
The types of '_.config.columns' are incompatible between these types.
Type '{ id: PgColumn<{ name: "id"; tableName: "todos"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>; ... 4 more ......' is not assignable to type 'Record<string, Column<any, object, object>>'.
Property 'id' is incompatible with index signature.
Type 'PgColumn<{ name: "id"; tableName: "todos"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [...]; baseColumn: never; generated: undefined; }, {}, {}>' is not assignable to type 'Column<any, object, object>'.
The types of 'table._.config.columns' are incompatible between these types.
Type 'Record<string, PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>>' is not assignable to type 'Record<string, Column<any, object, object>>'.
'string' index signatures are incompatible.
Type 'PgColumn<ColumnBaseConfig<ColumnDataType, string>, {}, {}>' is not assignable to type 'Column<any, object, object>'.
Property 'config' is protected but type 'Column<T, TRuntimeConfig, TTypeConfig>' is not a class derived from 'Column<T, TRuntimeConfig, TTypeConfig>'
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.0
What version of
drizzle-kit
are you using?0.27.1
Other packages
[email protected]
Describe the Bug
Hello!
I am trying to generate zod schemas from postgres tables generated from drizzle-kit pull :
I'm getting this type error :
And can't infer types to use in my application.
I am using Deno 2:
The text was updated successfully, but these errors were encountered: