From c3a65c0cdb25704703fbc22528b32d901081f61c Mon Sep 17 00:00:00 2001 From: "Zihan Chen (MSFT)" <53799235+ZihanChen-MSFT@users.noreply.github.com> Date: Sun, 27 Nov 2022 23:07:14 -0800 Subject: [PATCH] ... --- .../react-native-codegen/src/parsers/flow/modules/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native-codegen/src/parsers/flow/modules/index.js b/packages/react-native-codegen/src/parsers/flow/modules/index.js index 13d7b26d9d9738..9c0b44d9396abc 100644 --- a/packages/react-native-codegen/src/parsers/flow/modules/index.js +++ b/packages/react-native-codegen/src/parsers/flow/modules/index.js @@ -296,10 +296,10 @@ function translateTypeAnnotation( ); } case 'StringLiteralTypeAnnotation': { - // 'a' is a special case for 'a' | 'b' because the type name is different + // 'a' is a special case for 'a' | 'b' but the type name is different return wrapNullable(nullable, { type: 'UnionTypeAnnotation', - memberType: 'StringTypeAnnotation' + memberType: 'StringTypeAnnotation', }); } case 'MixedTypeAnnotation': {