Skip to content

Commit 4c37431

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Support new codegen schema for native modules (#47114)
Summary: Pull Request resolved: #47114 Export the EventEmitter annotation from the codegen Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D63995813 fbshipit-source-id: 0211c21d7813da03bf8b6680095e016a621c188b
1 parent e10c07d commit 4c37431

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-native-codegen/src/CodegenSchema.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type MixedTypeAnnotation = $ReadOnly<{
7171
type: 'MixedTypeAnnotation',
7272
}>;
7373

74-
type EventEmitterTypeAnnotation = $ReadOnly<{
74+
export type EventEmitterTypeAnnotation = $ReadOnly<{
7575
type: 'EventEmitterTypeAnnotation',
7676
typeAnnotation: NativeModuleEventEmitterTypeAnnotation | $FlowFixMe,
7777
}>;
@@ -424,4 +424,5 @@ export type CompleteTypeAnnotation =
424424
| NativeModuleTypeAnnotation
425425
| NativeModuleFunctionTypeAnnotation
426426
| NullableTypeAnnotation<NativeModuleTypeAnnotation>
427+
| EventEmitterTypeAnnotation
427428
| UnsafeAnyTypeAnnotation;

0 commit comments

Comments
 (0)