Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: UpsertArgs is not exported in payload #9347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DracoBlue
Copy link

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 DracoBlue changed the title fix(exports): UpsertArgs is not exported in payload fix: UpsertArgs is not exported in payload Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant