-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[lexical-react] Fix(lexical-react): ContentEditable props type rename #6837
Conversation
The name of the type seems too generic, so I suggest renaming it to: Like the link below https://github.com/facebook/lexical/blob/main/packages/lexical-react/src/LexicalTablePlugin.ts
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
I think this probably makes sense but it doesn't maintain backwards compatibility. I would recommend also exporting it as Props, maybe with a |
@etrepum Thanks for the nice comment, I didn't think about that part! I modified it according to your comment. |
/** | ||
* @deprecated This type has been renamed to `ContentEditableProps` to provide a clearer and more descriptive name. | ||
* For backward compatibility, this type is still exported as `Props`, but it is recommended to migrate to using `ContentEditableProps` instead. | ||
* | ||
* @note This alias is maintained for compatibility purposes but may be removed in future versions. | ||
* Please update your codebase to use `ContentEditableProps` to ensure long-term maintainability. | ||
*/ | ||
export type Props = ContentEditableProps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the formatting here is causing CI to fail, npm run prettier:fix
would resolve it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you i fixed fix: prettier
Description
The name of the type seems too generic, so I suggest renaming it to:
Like the link below
https://github.com/facebook/lexical/blob/main/packages/lexical-react/src/LexicalTablePlugin.ts