Skip to content

Commit f7f470b

Browse files
gkzfacebook-github-bot
authored andcommitted
Future proof for unknown type annotation node (#55069)
Summary: In the future this will parse as `UnknownTypeAnnotation` - future proof. Changelog: [Internal] Reviewed By: marcoww6 Differential Revision: D90226759
1 parent 9d1c55b commit f7f470b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)