From 0d27aedb738c394e830dbbb72b78371efe6fd1ce Mon Sep 17 00:00:00 2001 From: George Zahariev Date: Wed, 7 Jan 2026 12:02:02 -0800 Subject: [PATCH] Future proof for unknown type annotation node (#55069) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55069 In the future this will parse as `UnknownTypeAnnotation` - future proof. Changelog: [Internal] Reviewed By: marcoww6 Differential Revision: D90226759 fbshipit-source-id: 2f9d819f6536366f670100166d0091686ac782f6 --- packages/react-native-codegen/src/parsers/parsers-primitives.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native-codegen/src/parsers/parsers-primitives.js b/packages/react-native-codegen/src/parsers/parsers-primitives.js index a7f3ea2f7ce..51340384b80 100644 --- a/packages/react-native-codegen/src/parsers/parsers-primitives.js +++ b/packages/react-native-codegen/src/parsers/parsers-primitives.js @@ -665,6 +665,7 @@ function emitCommonTypes( MixedTypeAnnotation: cxxOnly ? emitMixed : emitGenericObject, UnsafeMixed: cxxOnly ? emitMixed : emitGenericObject, unknown: cxxOnly ? emitMixed : emitGenericObject, + UnknownTypeAnnotation: cxxOnly ? emitMixed : emitGenericObject, }; const typeAnnotationName = parser.convertKeywordToTypeAnnotation(