manually remove instances of '$TEMPORARY$string<>' (#46874)

Summary:
Remove instances of an unsound flow type

Changelog: [internal]

Pull Request resolved: https://github.com/facebook/react-native/pull/46874

Reviewed By: SamChou19815

Differential Revision: D63991776

fbshipit-source-id: 1817b1287803d22195bf521e07b3027b86562f47
This commit is contained in:
Panos Vekris 2024-10-07 19:18:14 -07:00 committed by Facebook GitHub Bot
parent 7b877a4bed
commit bed5323374

View File

@ -66,12 +66,7 @@ function getImports(
| 'EdgeInsetsPrimitive'
| 'ImageSourcePrimitive'
| 'PointPrimitive'
| 'DimensionPrimitive'
| $TEMPORARY$string<'ColorPrimitive'>
| $TEMPORARY$string<'EdgeInsetsPrimitive'>
| $TEMPORARY$string<'ImageSourcePrimitive'>
| $TEMPORARY$string<'PointPrimitive'>
| $TEMPORARY$string<'DimensionPrimitive'>,
| 'DimensionPrimitive',
) {
switch (name) {
case 'ColorPrimitive':
@ -107,6 +102,7 @@ function getImports(
const typeAnnotation = prop.typeAnnotation;
if (typeAnnotation.type === 'ReservedPropTypeAnnotation') {
// $FlowFixMe[incompatible-call]
addImportsForNativeName(typeAnnotation.name);
}