Repository navigation
[RFR] Enable noImplicitAny in ra-input-rich-text - #11455
Open
shikhar1est wants to merge 1 commit into
Open
shikhar1est wants to merge 1 commit into
shikhar1est wants to merge 1 commit into
Conversation
ThieryMichel
requested changes
Nov 25, 2026
| ); | ||
| }; | ||
| const suggestions = tags => { | ||
| const suggestions = (tags: string[]) => { |
Contributor
There was a problem hiding this comment.
If you type suggestions with tiptap SuggestionOptions type, you can remove all subsequent explicit any:
Suggested change
| const suggestions = (tags: string[]) => { | |
| const suggestions: Omit<SuggestionOptions<string>, 'editor'> = (tags: string[]) => { |
| "outDir": "dist", | ||
| "rootDir": "src", | ||
| "allowJs": false, | ||
| "noImplicitAny": true |
Contributor
There was a problem hiding this comment.
Can you also set strict true here, and update type accordingly.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Part of #11426 — enabling TypeScript's
noImplicitAnycompiler option acrossreact-adminpackages.Solution
"noImplicitAny": trueinpackages/ra-input-rich-text/tsconfig.json.AlignmentActions,FormatActions,ListActions) asRecord<string, (editor: Editor) => boolean>in the toolbar button components to resolveTS7053index-signature errors.RichTextInput.stories.tsxwithout altering any public component or hook signatures.How To Test
yarn tsc --noEmit -p packages/ra-input-rich-textyarn jest packages/ra-input-rich-textyarn workspace ra-input-rich-text buildAdditional Checks
masterfor a bugfix or a documentation fix, ornextfor a featureRichTextInput.spec.tsxcovers the modified components; no runtime behavior was changed)RichTextInput.stories.tsxcovers the components and was updated with explicit types)Also, please make sure to read the contributing guidelines.