Skip to content

Commit

Permalink
Remove superflous {type:string} from CodegenSchema (#46237)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #46237

I can't find any uses of this, it's not referenced in any fixtures, and flow and typescript both pass without it.

Changelog: [Internal]

Reviewed By: makovkastar

Differential Revision: D61892355

fbshipit-source-id: 8ebb4da3e104109c740d90c2495dbcc89d3978e5
  • Loading branch information
elicwhite authored and facebook-github-bot committed Aug 29, 2024
1 parent a536311 commit 84ec424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-native-codegen/src/CodegenSchema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export type NativeModuleEventEmitterTypeAnnotation =
| NativeModuleEventEmitterBaseTypeAnnotation
| {
readonly type: 'ArrayTypeAnnotation';
readonly elementType: NativeModuleEventEmitterBaseTypeAnnotation | { type: string };
readonly elementType: NativeModuleEventEmitterBaseTypeAnnotation;
};

export type NativeModuleBaseTypeAnnotation =
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-codegen/src/CodegenSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export type NativeModuleEventEmitterTypeAnnotation =
| NativeModuleEventEmitterBaseTypeAnnotation
| {
type: 'ArrayTypeAnnotation',
elementType: NativeModuleEventEmitterBaseTypeAnnotation | {type: string},
elementType: NativeModuleEventEmitterBaseTypeAnnotation,
};

export type NativeModuleBaseTypeAnnotation =
Expand Down

0 comments on commit 84ec424

Please sign in to comment.