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
This commit is contained in:
George Zahariev authored and meta-codesync[bot] committed 2026-01-07 12:02:02 -08:00
1 parent 1f2312687b
commit 0d27aedb73
1 file changed
+1
@@ -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(