Fix codegen boolean return value

Summary:
Changelog: [internal]

Codegen was generating code with return value number instead of boolean.

Reviewed By: RSNara

Differential Revision: D25863062

fbshipit-source-id: 780f88dd2d83e303b03d1ed9cc837ac6733f1702
This commit is contained in:
Samuel Susla authored and Facebook GitHub Bot committed 2021-01-10 09:54:25 -08:00
1 parent 0f4f917663
commit 0c5d59cffa
3 files changed
+10 -9

No files matched your search

@@ -45,6 +45,7 @@ export type StructParameterRecord = $ReadOnly<{
type ReturnJSType =
| 'VoidKind'
| 'BooleanKind'
| 'PromiseKind'
| 'ObjectKind'
| 'ArrayKind'
@@ -371,7 +372,7 @@ function getReturnJSType(
case 'Int32TypeAnnotation':
return 'NumberKind';
case 'BooleanTypeAnnotation':
return 'NumberKind';
return 'BooleanKind';
case 'GenericObjectTypeAnnotation':
return 'ObjectKind';
default: