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 =
|
type Drizzle =
|
||||||
| NodePgDatabase<ResolveSchemaType<GeneratedDatabaseSchema>>
|
| NodePgDatabase<ResolveSchemaType<GeneratedDatabaseSchema>>
|
||||||
| PgWithReplicas<
|
| PgWithReplicas<NodePgDatabase<ResolveSchemaType<GeneratedDatabaseSchema>>>
|
||||||
PgDatabase<
|
|
||||||
PgQueryResultHKT,
|
|
||||||
Record<string, unknown>,
|
|
||||||
ExtractTablesWithRelations<Record<string, unknown>>
|
|
||||||
>
|
|
||||||
>
|
|
||||||
|
|
||||||
export type PostgresAdapter = {
|
export type PostgresAdapter = {
|
||||||
drizzle: Drizzle
|
drizzle: Drizzle
|
||||||
|
|||||||
Reference in New Issue
Block a user