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