From 4dac99cf6d308e804efc098b37f5c24c1eb611cf Mon Sep 17 00:00:00 2001 From: Eli White Date: Tue, 17 Dec 2024 20:23:24 -0800 Subject: [PATCH] Fix FlowFixMes in CodegenVersionDiffing (#48312) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48312 I figured out how to fix these FlowFixMes Changelog: [Internal] Reviewed By: yungsters Differential Revision: D67313962 fbshipit-source-id: 21b109824411c1537f397aca45b7cdc2495f5e11 --- packages/react-native-codegen/src/CodegenSchema.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-native-codegen/src/CodegenSchema.js b/packages/react-native-codegen/src/CodegenSchema.js index e6383eb72cec45..8bd4fc0a214d30 100644 --- a/packages/react-native-codegen/src/CodegenSchema.js +++ b/packages/react-native-codegen/src/CodegenSchema.js @@ -431,4 +431,8 @@ export type CompleteTypeAnnotation = | NullableTypeAnnotation | EventEmitterTypeAnnotation | NativeModuleEnumDeclarationWithMembers - | UnsafeAnyTypeAnnotation; + | UnsafeAnyTypeAnnotation + // Native Module event emitters and methods + | ObjectTypeAnnotation< + Nullable | EventEmitterTypeAnnotation, + >;