Skip to content

Commit 3b9c821

Browse files
committed
fix(types): use PgUpdateSetSource for return type of update option
1 parent 9bb7986 commit 3b9c821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generated/upsert.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
PgInsertBuilder,
1515
PgInsertSelectQueryBuilder,
1616
PgInsertValue,
17+
PgUpdateSetSource,
1718
QueryBuilder,
1819
WithSubqueryWithSelection,
1920
} from 'drizzle-orm/pg-core'
@@ -61,7 +62,7 @@ export type PgUpsertSelectQuery<TTable extends Table> =
6162
type DBUpsertUpdateFn<TTable extends Table> = (tables: {
6263
current: TTable['_']['columns']
6364
excluded: TTable['_']['columns']
64-
}) => Partial<PgInsertValue<TTable>>
65+
}) => Partial<PgUpdateSetSource<TTable>>
6566

6667
export interface DBUpsertConfig<
6768
TMode extends 'one' | 'many',

0 commit comments

Comments
 (0)