From c91cfd1ec18b25150a083af4a5aeeb31872c50f7 Mon Sep 17 00:00:00 2001 From: Eli White Date: Mon, 6 Jan 2025 18:42:37 -0800 Subject: [PATCH] Simplify CompleteTypeAnnotation (#48473) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48473 This is such a simpler approach lol. I'll need this later for when I want to pass in arrays or objects of these types to the compat check Changelog: [internal] Reviewed By: cipolleschi Differential Revision: D67806812 fbshipit-source-id: 5cc361815fea901098d2931ba78293693ecc0a35 --- packages/react-native-codegen/src/CodegenSchema.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react-native-codegen/src/CodegenSchema.js b/packages/react-native-codegen/src/CodegenSchema.js index 6a7adb57e11bb8..e7fc38e4f3a919 100644 --- a/packages/react-native-codegen/src/CodegenSchema.js +++ b/packages/react-native-codegen/src/CodegenSchema.js @@ -429,8 +429,6 @@ export type CompleteTypeAnnotation = | EventEmitterTypeAnnotation | NativeModuleEnumDeclarationWithMembers | UnsafeAnyTypeAnnotation - | CompleteReservedTypeAnnotation - // Native Module event emitters and methods - | ObjectTypeAnnotation< - Nullable | EventEmitterTypeAnnotation, - >; + | ArrayTypeAnnotation + | ObjectTypeAnnotation + | CompleteReservedTypeAnnotation;