From baaf80b372ef757cd2aadb881eb6fce816c58072 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Mon, 16 Nov 2026 11:01:56 +0000 Subject: [PATCH] Include npm Flow libdefs and enforce mirrored type sync (#59987) Summary: Load npm library definitions by directory while keeping Jest globals in the environment definitions. Enforce byte-for-byte synchronization of mirrored declarations, and require every ignored Flow libdef to have sync coverage. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D131482406 Pull Request resolved: https://github.com/react/react-native/pull/59987 --- .flowconfig | 3 +++ flow-typed/{npm => environment}/jest.js | 0 2 files changed, 3 insertions(+) rename flow-typed/{npm => environment}/jest.js (100%) diff --git a/.flowconfig b/.flowconfig index 2b273f8cbbb..a6e455ae50a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -5,6 +5,9 @@ packages/react-native/sdks/** ; Ignore fb_internal modules packages/react-native/src/fb_internal/** +; Ignore files excluded from the open-source repository +**/*.fb.* + ; Ignore the codegen e2e tests packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js diff --git a/flow-typed/npm/jest.js b/flow-typed/environment/jest.js similarity index 100% rename from flow-typed/npm/jest.js rename to flow-typed/environment/jest.js