Skip to content

Commit 4def217

Browse files
committed
Update wise-icons-wash.md
1 parent 8c90389 commit 4def217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.changeset/wise-icons-wash.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
"types-react-codemod": patch
33
---
44

5-
Handle array syntax in replaceReactType
5+
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

Comments
 (0)