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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user