mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Dedupe trivial types between modules and components (#46220)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46220 We'll want to eventually combine the module and component capabilities more, but these are at least the trivially shared ones. More work is required to merge the more complex object types. This change also makes it more clear where capabilities are different between native modules and components Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D61740140 fbshipit-source-id: 9e7bf740cf6cd2431be8cad822ec69903dbbc71f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
74c9ef8fde
commit
851037d144
Vendored
+10
-10
@@ -13,15 +13,15 @@
|
||||
import type {
|
||||
NativeModuleArrayTypeAnnotation,
|
||||
NativeModuleBaseTypeAnnotation,
|
||||
NativeModuleBooleanTypeAnnotation,
|
||||
NativeModuleDoubleTypeAnnotation,
|
||||
BooleanTypeAnnotation,
|
||||
DoubleTypeAnnotation,
|
||||
NativeModuleEnumDeclaration,
|
||||
NativeModuleFloatTypeAnnotation,
|
||||
FloatTypeAnnotation,
|
||||
NativeModuleGenericObjectTypeAnnotation,
|
||||
NativeModuleInt32TypeAnnotation,
|
||||
Int32TypeAnnotation,
|
||||
NativeModuleNumberTypeAnnotation,
|
||||
NativeModuleObjectTypeAnnotation,
|
||||
NativeModuleStringTypeAnnotation,
|
||||
StringTypeAnnotation,
|
||||
NativeModuleTypeAliasTypeAnnotation,
|
||||
Nullable,
|
||||
ReservedTypeAnnotation,
|
||||
@@ -57,12 +57,12 @@ export type StructProperty = $ReadOnly<{
|
||||
}>;
|
||||
|
||||
export type StructTypeAnnotation =
|
||||
| NativeModuleStringTypeAnnotation
|
||||
| StringTypeAnnotation
|
||||
| NativeModuleNumberTypeAnnotation
|
||||
| NativeModuleInt32TypeAnnotation
|
||||
| NativeModuleDoubleTypeAnnotation
|
||||
| NativeModuleFloatTypeAnnotation
|
||||
| NativeModuleBooleanTypeAnnotation
|
||||
| Int32TypeAnnotation
|
||||
| DoubleTypeAnnotation
|
||||
| FloatTypeAnnotation
|
||||
| BooleanTypeAnnotation
|
||||
| NativeModuleEnumDeclaration
|
||||
| NativeModuleGenericObjectTypeAnnotation
|
||||
| ReservedTypeAnnotation
|
||||
|
||||
Reference in New Issue
Block a user