payload icon indicating copy to clipboard operation
payload copied to clipboard

fix: UpsertArgs is not exported in payload

Open DracoBlue opened this issue 1 year ago • 2 comments

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.

DracoBlue avatar Nov 19 '24 17:11 DracoBlue

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.

github-actions[bot] avatar Dec 14 '24 05:12 github-actions[bot]

Still necessary :)

DracoBlue avatar Dec 14 '24 06:12 DracoBlue

🚀 This is included in version v3.18.0

github-actions[bot] avatar Jan 20 '25 22:01 github-actions[bot]