mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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(
|
||||
|
||||
Reference in new issue
Block a user