@react-native/codegen 0.81.0-nightly-20250522-12ced22f7 → 0.81.0-nightly-20250524-ca5f4d172

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.
@@ -83,6 +83,9 @@ class PojoCollector {
83
83
  }
84
84
  }
85
85
  })();
86
+
87
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
88
+ * https://fburl.com/workplace/6291gfvu */
86
89
  return {
87
90
  type: 'ArrayTypeAnnotation',
88
91
  elementType: pojoElementType,
@@ -145,6 +145,8 @@ class PojoCollector {
145
145
  }
146
146
  })();
147
147
 
148
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
149
+ * https://fburl.com/workplace/6291gfvu */
148
150
  return {
149
151
  type: 'ArrayTypeAnnotation',
150
152
  elementType: pojoElementType,
@@ -197,6 +197,8 @@ function translateTypeAnnotation(
197
197
  };
198
198
  return typeAliasResolution(
199
199
  typeResolutionStatus,
200
+ /* $FlowFixMe[incompatible-call] Natural Inference rollout. See
201
+ * https://fburl.com/workplace/6291gfvu */
200
202
  objectTypeAnnotation,
201
203
  aliasMap,
202
204
  nullable,
@@ -222,6 +222,8 @@ function translateTypeAnnotation(
222
222
 
223
223
  return typeAliasResolution(
224
224
  typeResolutionStatus,
225
+ /* $FlowFixMe[incompatible-call] Natural Inference rollout. See
226
+ * https://fburl.com/workplace/6291gfvu */
225
227
  objectTypeAnnotation,
226
228
  aliasMap,
227
229
  nullable,
@@ -116,12 +116,18 @@ export class MockedParser {
116
116
  return [];
117
117
  }
118
118
  parseFile(filename) {
119
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
120
+ * https://fburl.com/workplace/6291gfvu */
119
121
  return schemaMock;
120
122
  }
121
123
  parseString(contents, filename) {
124
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
125
+ * https://fburl.com/workplace/6291gfvu */
122
126
  return schemaMock;
123
127
  }
124
128
  parseModuleFixture(filename) {
129
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
130
+ * https://fburl.com/workplace/6291gfvu */
125
131
  return schemaMock;
126
132
  }
127
133
  getAst(contents, filename) {
@@ -116,14 +116,20 @@ export class MockedParser implements Parser {
116
116
  }
117
117
 
118
118
  parseFile(filename: string): SchemaType {
119
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
120
+ * https://fburl.com/workplace/6291gfvu */
119
121
  return schemaMock;
120
122
  }
121
123
 
122
124
  parseString(contents: string, filename: ?string): SchemaType {
125
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
126
+ * https://fburl.com/workplace/6291gfvu */
123
127
  return schemaMock;
124
128
  }
125
129
 
126
130
  parseModuleFixture(filename: string): SchemaType {
131
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
132
+ * https://fburl.com/workplace/6291gfvu */
127
133
  return schemaMock;
128
134
  }
129
135
 
@@ -4,8 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
8
7
  *
8
+ * @format
9
9
  */
10
10
 
11
11
  'use strict';
@@ -4,8 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
8
7
  * @flow strict
8
+ * @format
9
9
  */
10
10
 
11
11
  'use strict';
@@ -4,8 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
8
7
  *
8
+ * @format
9
9
  */
10
10
 
11
11
  'use strict';
@@ -4,8 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @format
8
7
  * @flow strict
8
+ * @format
9
9
  */
10
10
 
11
11
  'use strict';
@@ -85,6 +85,8 @@ function translateObjectTypeAnnotation(
85
85
  }
86
86
  return typeAliasResolution(
87
87
  typeResolutionStatus,
88
+ /* $FlowFixMe[incompatible-call] Natural Inference rollout. See
89
+ * https://fburl.com/workplace/6291gfvu */
88
90
  objectTypeAnnotation,
89
91
  aliasMap,
90
92
  nullable,
@@ -103,6 +103,8 @@ function translateObjectTypeAnnotation(
103
103
 
104
104
  return typeAliasResolution(
105
105
  typeResolutionStatus,
106
+ /* $FlowFixMe[incompatible-call] Natural Inference rollout. See
107
+ * https://fburl.com/workplace/6291gfvu */
106
108
  objectTypeAnnotation,
107
109
  aliasMap,
108
110
  nullable,
@@ -130,6 +130,9 @@ class TypeScriptParser {
130
130
  .replace('StringLiteral', 'StringTypeAnnotation')
131
131
  : 'ObjectTypeAnnotation';
132
132
  };
133
+
134
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
135
+ * https://fburl.com/workplace/6291gfvu */
133
136
  return [...new Set(membersTypes.map(remapLiteral))];
134
137
  }
135
138
  getStringLiteralUnionTypeAnnotationStringLiterals(membersTypes) {
@@ -118,6 +118,8 @@ class TypeScriptParser implements Parser {
118
118
  : 'ObjectTypeAnnotation';
119
119
  };
120
120
 
121
+ /* $FlowFixMe[incompatible-return] Natural Inference rollout. See
122
+ * https://fburl.com/workplace/6291gfvu */
121
123
  return [...new Set(membersTypes.map(remapLiteral))];
122
124
  }
123
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.81.0-nightly-20250522-12ced22f7",
3
+ "version": "0.81.0-nightly-20250524-ca5f4d172",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {