We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c90389 commit 4def217Copy full SHA for 4def217
.changeset/wise-icons-wash.md
@@ -2,4 +2,6 @@
2
"types-react-codemod": patch
3
---
4
5
-Handle array syntax in replaceReactType
+Fix a bug when replacing types in shorthand array type notations.
6
+
7
+For example, replacing `ReactText` in `ReactText[]` should now result in `(number | string)[]` instead of `number | string[]`.
0 commit comments