Skip to content

Commit 7a392dd

Browse files
authored
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.
1 parent d55b6a3 commit 7a392dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/payload/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ export type {
11121112
UpdateVersion,
11131113
UpdateVersionArgs,
11141114
Upsert,
1115+
UpsertArgs,
11151116
} from './database/types.js'
11161117
export type { EmailAdapter as PayloadEmailAdapter, SendEmailOptions } from './email/types.js'
11171118
export {

0 commit comments

Comments
 (0)