@react-native/codegen 0.83.0-nightly-20250915-56e5dff73 → 0.83.0-nightly-20250917-18cb4edfa

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.
@@ -463,7 +463,7 @@ function buildEventEmitterSchema(
463
463
  );
464
464
  return {
465
465
  name: eventemitterName,
466
- optional: false,
466
+ optional: Boolean(property.optional),
467
467
  typeAnnotation: {
468
468
  type: 'EventEmitterTypeAnnotation',
469
469
  typeAnnotation: eventTypeAnnotation,
@@ -540,7 +540,7 @@ function buildEventEmitterSchema(
540
540
 
541
541
  return {
542
542
  name: eventemitterName,
543
- optional: false,
543
+ optional: Boolean(property.optional),
544
544
  typeAnnotation: {
545
545
  type: 'EventEmitterTypeAnnotation',
546
546
  typeAnnotation: eventTypeAnnotation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.83.0-nightly-20250915-56e5dff73",
3
+ "version": "0.83.0-nightly-20250917-18cb4edfa",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {