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:
Sam Zhou
2025-03-25 14:00:17 -07:00
committed by Facebook GitHub Bot
parent c920b7f54a
commit cbd2ee55ef
26 changed files with 78 additions and 174 deletions
@@ -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) {