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

chore(richtext-lexical): improve types of UploadData #10982

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GermanJablo
Copy link
Contributor

One step closer to being able to remove noUncheckedIndexedAccess in packages/richtext-lexical/tsconfig.json.

I'm introducing UploadData_P4 which is a more precise version of UploadData. I'm doing it as a different type because there's a chance it'll be a breaking change for some users.

UploadData is used in many places, but I'm currently replacing it only in packages/richtext-lexical/src/exports/react/components/RichText/converter/converters/upload.tsx, because in the other files it's too rooted to other types like UploadNode.

@GermanJablo GermanJablo enabled auto-merge (squash) February 4, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant