Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen-MSFT committed Nov 28, 2022
1 parent 0e53ebe commit c3a65c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit c3a65c0

Please sign in to comment.