@react-native/codegen 0.82.0-nightly-20250821-0ef21bf8a → 0.82.0-nightly-20250823-cf528526c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -325,10 +325,14 @@ function setDefaultValue(common, defaultValue) {
|
|
|
325
325
|
common.default = defaultValue ? defaultValue : 0;
|
|
326
326
|
break;
|
|
327
327
|
case 'FloatTypeAnnotation':
|
|
328
|
+
/* $FlowFixMe[invalid-compare] Error discovered during Constant Condition
|
|
329
|
+
* roll out. See https://fburl.com/workplace/5whu3i34. */
|
|
328
330
|
common.default =
|
|
329
331
|
defaultValue === null ? null : defaultValue ? defaultValue : 0;
|
|
330
332
|
break;
|
|
331
333
|
case 'BooleanTypeAnnotation':
|
|
334
|
+
/* $FlowFixMe[invalid-compare] Error discovered during Constant Condition
|
|
335
|
+
* roll out. See https://fburl.com/workplace/5whu3i34. */
|
|
332
336
|
common.default = defaultValue === null ? null : !!defaultValue;
|
|
333
337
|
break;
|
|
334
338
|
case 'StringTypeAnnotation':
|
|
@@ -350,6 +350,8 @@ function setDefaultValue(
|
|
|
350
350
|
common.default = ((defaultValue ? defaultValue : 0): number);
|
|
351
351
|
break;
|
|
352
352
|
case 'FloatTypeAnnotation':
|
|
353
|
+
/* $FlowFixMe[invalid-compare] Error discovered during Constant Condition
|
|
354
|
+
* roll out. See https://fburl.com/workplace/5whu3i34. */
|
|
353
355
|
common.default = ((defaultValue === null
|
|
354
356
|
? null
|
|
355
357
|
: defaultValue
|
|
@@ -357,6 +359,8 @@ function setDefaultValue(
|
|
|
357
359
|
: 0): number | null);
|
|
358
360
|
break;
|
|
359
361
|
case 'BooleanTypeAnnotation':
|
|
362
|
+
/* $FlowFixMe[invalid-compare] Error discovered during Constant Condition
|
|
363
|
+
* roll out. See https://fburl.com/workplace/5whu3i34. */
|
|
360
364
|
common.default = defaultValue === null ? null : !!defaultValue;
|
|
361
365
|
break;
|
|
362
366
|
case 'StringTypeAnnotation':
|