From e414713e4c6d19a4f4aaa0193f540636dd936eb0 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Tue, 18 Jul 2023 15:35:56 -0700 Subject: [PATCH] chore: stricter TS check for transform style (#38348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This improves the strictness of TS typings for `transform` on `View`'s `style` prop. Consider the following example, with what TS reports in case of errors, using RN 0.72.3. The ❌ / ✅ symbols indicate whether TS is happy with the code ```tsx ❌ // TS2769: No overload matches this call. ❌ // TS2769: No overload matches this call. ✅ // this is WRONG, corrected in the next row ✅ ``` With this change, TS will report an error even for line 4 ```tsx ❌ // TS2769: No overload matches this call. ❌ // TS2769: No overload matches this call. ✅ // TS2769: No overload matches this call. ✅ ``` ## Changelog: