From 4def217677f9a6c42af3a34921bf8b4e6adab561 Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Thu, 12 Dec 2024 19:56:15 +0100 Subject: [PATCH] Update wise-icons-wash.md --- .changeset/wise-icons-wash.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.changeset/wise-icons-wash.md b/.changeset/wise-icons-wash.md index a94fd652..97be277a 100644 --- a/.changeset/wise-icons-wash.md +++ b/.changeset/wise-icons-wash.md @@ -2,4 +2,6 @@ "types-react-codemod": patch --- -Handle array syntax in replaceReactType +Fix a bug when replacing types in shorthand array type notations. + +For example, replacing `ReactText` in `ReactText[]` should now result in `(number | string)[]` instead of `number | string[]`.