mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
1 parent
0f4f917663
commit
0c5d59cffa
3 files changed
+10
-9
No files matched your search
Vendored
+2
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user