payload
payload copied to clipboard
fix(richtext-lexical): annotation is necessary ts error
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
- [x] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
- [ ] Chore (non-breaking change which does not add functionality)
- [x] 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