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

Make extensions required in props for RichTextEditor and ReadOnly #92

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

sjdemartini
Copy link
Owner

See discussion here #91 (comment)

These components won't work without some extensions provided, so improve upon the typing we get from Tiptap and specify extensions as a required prop. Note that an empty array could still "pass" typing, but at least it's a hint that a real value is required, so shouldn't be as likely to run into a confusing error, like in #91 (comment). (For instance, you always need the Document extension at the very least.)

See discussion here
#91 (comment)

These components won't work without some extensions provided, so improve
upon the typing we get from Tiptap and specify `extensions` as a
required prop. Note that an empty array could still "pass" typing, but
at least it's a hint that a real value is required, so shouldn't be as
likely to run into a confusing error, like in
#91 (comment).
@sjdemartini sjdemartini enabled auto-merge (rebase) July 12, 2023 16:56
@sjdemartini sjdemartini merged commit e35c997 into main Jul 12, 2023
@sjdemartini sjdemartini deleted the make-extensions-more-obviously-required branch July 12, 2023 16:57
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