payload
payload copied to clipboard
fix: UpsertArgs is not exported in payload
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 PR is stale due to lack of activity.
To keep the PR open, please indicate that it is still relevant in a comment below.
Still necessary :)
🚀 This is included in version v3.18.0