@react-native/codegen 0.89.0-nightly-20261013-8bbd42203 → 0.89.0-nightly-20261015-cb5ea0385
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/parsers/flow/components/commands.js.flow +1 -1
- package/lib/parsers/flow/components/events.js.flow +2 -2
- package/lib/parsers/parsers-commons.js.flow +1 -1
- package/lib/parsers/parsers-primitives.js +1 -0
- package/lib/parsers/parsers-primitives.js.flow +1 -0
- package/lib/parsers/typescript/components/commands.js.flow +1 -1
- package/lib/parsers/typescript/components/events.js.flow +1 -1
- package/lib/parsers/typescript/components/extends.js.flow +1 -1
- package/lib/parsers/utils.js.flow +2 -2
- package/package.json +3 -3
|
@@ -22,7 +22,7 @@ import type {TypeDeclarationMap} from '../../utils';
|
|
|
22
22
|
const {getValueFromTypes} = require('../utils.js');
|
|
23
23
|
|
|
24
24
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
25
|
-
type EventTypeAST =
|
|
25
|
+
type EventTypeAST = any;
|
|
26
26
|
|
|
27
27
|
function buildCommandSchema(
|
|
28
28
|
property: EventTypeAST,
|
|
@@ -266,11 +266,11 @@ function buildEventSchema(
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
269
|
-
type EventTypeAST =
|
|
269
|
+
type EventTypeAST = any;
|
|
270
270
|
|
|
271
271
|
type TypeMap = {
|
|
272
272
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
273
|
-
[string]:
|
|
273
|
+
[string]: any,
|
|
274
274
|
...
|
|
275
275
|
};
|
|
276
276
|
|
|
@@ -299,6 +299,7 @@ function emitCommonTypes(hasteModuleName, types, typeAnnotation, aliasMap, enumM
|
|
|
299
299
|
Double: emitDouble,
|
|
300
300
|
Float: emitFloat,
|
|
301
301
|
UnsafeObject: emitGenericObject,
|
|
302
|
+
LegacyObject: emitGenericObject,
|
|
302
303
|
Object: emitGenericObject,
|
|
303
304
|
$Partial: emitPartial,
|
|
304
305
|
Partial: emitPartial,
|
|
@@ -23,7 +23,7 @@ const {parseTopLevelType} = require('../parseTopLevelType');
|
|
|
23
23
|
const {getPrimitiveTypeAnnotation} = require('./componentsUtils');
|
|
24
24
|
|
|
25
25
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
26
|
-
type EventTypeAST =
|
|
26
|
+
type EventTypeAST = any;
|
|
27
27
|
|
|
28
28
|
function buildCommandSchemaInternal(
|
|
29
29
|
name: string,
|
|
@@ -238,7 +238,7 @@ function findEventArgumentsAndType(
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
// $FlowFixMe[unclear-type] TODO(T108222691): Use flow-types for @babel/parser
|
|
241
|
-
type EventTypeAST =
|
|
241
|
+
type EventTypeAST = any;
|
|
242
242
|
|
|
243
243
|
function buildEventSchema(
|
|
244
244
|
types: TypeDeclarationMap,
|
|
@@ -24,7 +24,7 @@ function isEvent(typeAnnotation: $FlowFixMe, parser: Parser): boolean {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// $FlowFixMe[unclear-type] TODO(T108222691): Use flow-types for @babel/parser
|
|
27
|
-
type PropsAST =
|
|
27
|
+
type PropsAST = any;
|
|
28
28
|
|
|
29
29
|
function categorizeProps(
|
|
30
30
|
typeDefinition: ReadonlyArray<PropsAST>,
|
|
@@ -34,10 +34,10 @@ function extractNativeModuleName(filename: string): string {
|
|
|
34
34
|
export type ParserErrorCapturer = <T>(fn: () => T) => ?T;
|
|
35
35
|
|
|
36
36
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
37
|
-
export type PropAST =
|
|
37
|
+
export type PropAST = any;
|
|
38
38
|
|
|
39
39
|
// $FlowFixMe[unclear-type] there's no flowtype for ASTs
|
|
40
|
-
export type ASTNode =
|
|
40
|
+
export type ASTNode = any;
|
|
41
41
|
|
|
42
42
|
function createParserErrorCapturer(): [
|
|
43
43
|
Array<ParserError>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/codegen",
|
|
3
|
-
"version": "0.89.0-nightly-
|
|
3
|
+
"version": "0.89.0-nightly-20261015-cb5ea0385",
|
|
4
4
|
"description": "Code generation tools for React Native",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/core": "^7.25.2",
|
|
33
33
|
"@babel/parser": "^7.29.9",
|
|
34
|
-
"flow-parser": "0.
|
|
34
|
+
"flow-parser": "0.335.0",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"nullthrows": "^1.1.1",
|
|
37
37
|
"tinyglobby": "^0.2.15",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
|
|
46
46
|
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
|
47
47
|
"@babel/preset-env": "^7.25.3",
|
|
48
|
-
"flow-estree": "0.
|
|
48
|
+
"flow-estree": "0.335.0",
|
|
49
49
|
"micromatch": "^4.0.4",
|
|
50
50
|
"prettier": "3.9.4",
|
|
51
51
|
"rimraf": "^3.0.2"
|