fix: UpsertArgs is not exported in payload (#9347)

### What?

While working on a custom database adapter (I know I am crazy for this)
I noticed that UpsertArgs is not exported when doing:

```
import {
  type UpsertArgs
} from 'payload'

```

it results in:

```
Error: src/index.ts(21,8): error TS2614: Module '"payload"' has no exported member 'UpsertArgs'. Did you mean to use 'import UpsertArgs from "payload"' instead?
```

### Why?

Because index.ts in packages/payload/src/index.ts includes Upsert but
not UpsertArgs in export.

### How?

Add the export from UpsertArgs back.
This commit is contained in:
DracoBlue
2025-01-15 16:56:54 +01:00
committed by GitHub
parent d55b6a3db9
commit 7a392ddbff

View File

@@ -1112,6 +1112,7 @@ export type {
UpdateVersion,
UpdateVersionArgs,
Upsert,
UpsertArgs,
} from './database/types.js'
export type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from './email/types.js'
export {