fix(db-postgres): drizzle doesn't recognize types from the generated types (#14058)

Fixes https://github.com/payloadcms/payload/issues/13041
This commit is contained in:
Sasha
2025-10-06 22:41:15 +03:00
committed by GitHub
parent a88e3c5108
commit ef84b20f26

View File

@@ -88,13 +88,7 @@ type ResolveSchemaType<T> = 'schema' extends keyof T
type Drizzle =
| NodePgDatabase<ResolveSchemaType<GeneratedDatabaseSchema>>
| PgWithReplicas<
PgDatabase<
PgQueryResultHKT,
Record<string, unknown>,
ExtractTablesWithRelations<Record<string, unknown>>
>
>
| PgWithReplicas<NodePgDatabase<ResolveSchemaType<GeneratedDatabaseSchema>>>
export type PostgresAdapter = {
drizzle: Drizzle