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(richtext-lexical): annotation is necessary ts error #8112

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

Conversation

goszczynskip
Copy link

Description

This commit fixes The inferred type of 'name' cannot be named without a reference to '../../../node_modules/@payloadcms/richtext-lexical/dist/types'. This is likely not portable. A type annotation is necessary. ts (2742) ts error.

When using lexicalEditor({}) to construct payload config ts reports error mentioned above. This PR fixes it by exposing necessary types from the richtext-lexical package.

Error is present on version 3.0.0-beta.100

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Chore (non-breaking change which does not add functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Change to the templates directory (does not affect core functionality)
  • Change to the examples directory (does not affect core functionality)
  • This change requires a documentation update

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation
This commit fixes `The inferred type of 'name' cannot be named without a reference to '../../../node_modules/@payloadcms/richtext-lexical/dist/types'. This is likely not portable. A type annotation is necessary. ts (2742) `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant