@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.
- package/lib/generators/components/GeneratePropsJavaPojo/PojoCollector.js +3 -0
- package/lib/generators/components/GeneratePropsJavaPojo/PojoCollector.js.flow +2 -0
- package/lib/parsers/flow/modules/index.js +2 -0
- package/lib/parsers/flow/modules/index.js.flow +2 -0
- package/lib/parsers/parserMock.js +6 -0
- package/lib/parsers/parserMock.js.flow +6 -0
- package/lib/parsers/parsers-utils.js +1 -1
- package/lib/parsers/parsers-utils.js.flow +1 -1
- package/lib/parsers/schema.js +1 -1
- package/lib/parsers/schema.js.flow +1 -1
- package/lib/parsers/typescript/modules/index.js +2 -0
- package/lib/parsers/typescript/modules/index.js.flow +2 -0
- package/lib/parsers/typescript/parser.js +3 -0
- package/lib/parsers/typescript/parser.js.flow +2 -0
- package/package.json +1 -1
|
@@ -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
|
|
package/lib/parsers/schema.js
CHANGED
|
@@ -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
|
|