diff --git a/packages/react-native-codegen/src/CodegenSchema.js b/packages/react-native-codegen/src/CodegenSchema.js index 4398919e77501b..6b3097804fa435 100644 --- a/packages/react-native-codegen/src/CodegenSchema.js +++ b/packages/react-native-codegen/src/CodegenSchema.js @@ -71,7 +71,7 @@ export type MixedTypeAnnotation = $ReadOnly<{ type: 'MixedTypeAnnotation', }>; -type EventEmitterTypeAnnotation = $ReadOnly<{ +export type EventEmitterTypeAnnotation = $ReadOnly<{ type: 'EventEmitterTypeAnnotation', typeAnnotation: NativeModuleEventEmitterTypeAnnotation | $FlowFixMe, }>; @@ -424,4 +424,5 @@ export type CompleteTypeAnnotation = | NativeModuleTypeAnnotation | NativeModuleFunctionTypeAnnotation | NullableTypeAnnotation + | EventEmitterTypeAnnotation | UnsafeAnyTypeAnnotation;