From 84ec424e8a9f0891c2386397faa2ba2df82baf64 Mon Sep 17 00:00:00 2001 From: Eli White Date: Thu, 29 Aug 2024 10:51:31 -0700 Subject: [PATCH] Remove superflous {type:string} from CodegenSchema (#46237) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- packages/react-native-codegen/src/CodegenSchema.d.ts | 2 +- packages/react-native-codegen/src/CodegenSchema.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native-codegen/src/CodegenSchema.d.ts b/packages/react-native-codegen/src/CodegenSchema.d.ts index 0bdf0e35f41..0a99ea06e16 100644 --- a/packages/react-native-codegen/src/CodegenSchema.d.ts +++ b/packages/react-native-codegen/src/CodegenSchema.d.ts @@ -379,7 +379,7 @@ export type NativeModuleEventEmitterTypeAnnotation = | NativeModuleEventEmitterBaseTypeAnnotation | { readonly type: 'ArrayTypeAnnotation'; - readonly elementType: NativeModuleEventEmitterBaseTypeAnnotation | { type: string }; + readonly elementType: NativeModuleEventEmitterBaseTypeAnnotation; }; export type NativeModuleBaseTypeAnnotation = diff --git a/packages/react-native-codegen/src/CodegenSchema.js b/packages/react-native-codegen/src/CodegenSchema.js index 7752be23a4e..00a5224aee2 100644 --- a/packages/react-native-codegen/src/CodegenSchema.js +++ b/packages/react-native-codegen/src/CodegenSchema.js @@ -365,7 +365,7 @@ export type NativeModuleEventEmitterTypeAnnotation = | NativeModuleEventEmitterBaseTypeAnnotation | { type: 'ArrayTypeAnnotation', - elementType: NativeModuleEventEmitterBaseTypeAnnotation | {type: string}, + elementType: NativeModuleEventEmitterBaseTypeAnnotation, }; export type NativeModuleBaseTypeAnnotation =