Skip to content

Commit

Permalink
Support new codegen schema for native modules (facebook#47114)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47114

Export the EventEmitter annotation from the codegen

Changelog: [Internal]

Reviewed By: GijsWeterings

Differential Revision: D63995813
  • Loading branch information
elicwhite authored and facebook-github-bot committed Oct 18, 2024
1 parent f3e37e2 commit d79acbe
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 d79acbe

Please sign in to comment.