mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Eliminate $PropertyType and $ElementType in react-native (#50262)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50262 Prepare for their removal in Flow Changelog: [Internal] Reviewed By: gkz Differential Revision: D71823860 fbshipit-source-id: e1e18424ae731cd323999316a7f3a5d42f4b5b91
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c920b7f54a
commit
cbd2ee55ef
Vendored
+2
-4
@@ -112,10 +112,8 @@ class PojoCollector {
|
||||
}
|
||||
case 'ArrayTypeAnnotation': {
|
||||
const arrayTypeAnnotation = typeAnnotation;
|
||||
const elementType: $PropertyType<
|
||||
ComponentArrayTypeAnnotation,
|
||||
'elementType',
|
||||
> = arrayTypeAnnotation.elementType;
|
||||
const elementType: ComponentArrayTypeAnnotation['elementType'] =
|
||||
arrayTypeAnnotation.elementType;
|
||||
|
||||
const pojoElementType = (() => {
|
||||
switch (elementType.type) {
|
||||
|
||||
Reference in New Issue
Block a user