Skip to content

Commit

Permalink
Simplify CompleteTypeAnnotation (facebook#48473)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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
  • Loading branch information
elicwhite authored and facebook-github-bot committed Jan 7, 2025
1 parent 02c6790 commit c91cfd1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/react-native-codegen/src/CodegenSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@ export type CompleteTypeAnnotation =
| EventEmitterTypeAnnotation
| NativeModuleEnumDeclarationWithMembers
| UnsafeAnyTypeAnnotation
| CompleteReservedTypeAnnotation
// Native Module event emitters and methods
| ObjectTypeAnnotation<
Nullable<NativeModuleFunctionTypeAnnotation> | EventEmitterTypeAnnotation,
>;
| ArrayTypeAnnotation<CompleteTypeAnnotation>
| ObjectTypeAnnotation<CompleteTypeAnnotation>
| CompleteReservedTypeAnnotation;

0 comments on commit c91cfd1

Please sign in to comment.