Skip to content

Commit 0d27aed

Browse files
gkzmeta-codesync[bot]
authored andcommitted
Future proof for unknown type annotation node (#55069)
Summary: Pull Request resolved: #55069 In the future this will parse as `UnknownTypeAnnotation` - future proof. Changelog: [Internal] Reviewed By: marcoww6 Differential Revision: D90226759 fbshipit-source-id: 2f9d819f6536366f670100166d0091686ac782f6
1 parent 1f23126 commit 0d27aed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native-codegen/src/parsers/parsers-primitives.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ function emitCommonTypes(
665665
MixedTypeAnnotation: cxxOnly ? emitMixed : emitGenericObject,
666666
UnsafeMixed: cxxOnly ? emitMixed : emitGenericObject,
667667
unknown: cxxOnly ? emitMixed : emitGenericObject,
668+
UnknownTypeAnnotation: cxxOnly ? emitMixed : emitGenericObject,
668669
};
669670

670671
const typeAnnotationName = parser.convertKeywordToTypeAnnotation(

0 commit comments

Comments
 (0)