Skip to content

Commit

Permalink
Support new codegen schema for native modules
Browse files Browse the repository at this point in the history
Summary:
Export the EventEmitter annotation from the codegen

Changelog: [Internal]

Differential Revision: D63995813
  • Loading branch information
elicwhite authored and facebook-github-bot committed Oct 18, 2024
1 parent 0a2dec1 commit 1f72455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-native-codegen/src/CodegenSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type MixedTypeAnnotation = $ReadOnly<{
type: 'MixedTypeAnnotation',
}>;

type EventEmitterTypeAnnotation = $ReadOnly<{
export type EventEmitterTypeAnnotation = $ReadOnly<{
type: 'EventEmitterTypeAnnotation',
typeAnnotation: NativeModuleEventEmitterTypeAnnotation | $FlowFixMe,
}>;
Expand Down Expand Up @@ -424,4 +424,5 @@ export type CompleteTypeAnnotation =
| NativeModuleTypeAnnotation
| NativeModuleFunctionTypeAnnotation
| NullableTypeAnnotation<NativeModuleTypeAnnotation>
| EventEmitterTypeAnnotation
| UnsafeAnyTypeAnnotation;

0 comments on commit 1f72455

Please sign in to comment.