@react-native/codegen 0.89.0-nightly-20261014-b8ec87e45 → 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.
@@ -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 = Object;
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 = Object;
269
+ type EventTypeAST = any;
270
270
 
271
271
  type TypeMap = {
272
272
  // $FlowFixMe[unclear-type] there's no flowtype for ASTs
273
- [string]: Object,
273
+ [string]: any,
274
274
  ...
275
275
  };
276
276
 
@@ -83,7 +83,7 @@ export type CommandOptions = Readonly<{
83
83
  }>;
84
84
 
85
85
  // $FlowFixMe[unclear-type] TODO(T108222691): Use flow-types for @babel/parser
86
- type OptionsAST = Object;
86
+ type OptionsAST = any;
87
87
 
88
88
  type ExtendedPropResult = {
89
89
  type: 'ReactNativeBuiltInType',
@@ -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,
@@ -667,6 +667,7 @@ function emitCommonTypes(
667
667
  Double: emitDouble,
668
668
  Float: emitFloat,
669
669
  UnsafeObject: emitGenericObject,
670
+ LegacyObject: emitGenericObject,
670
671
  Object: emitGenericObject,
671
672
  $Partial: emitPartial,
672
673
  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 = Object;
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 = Object;
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 = Object;
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 = Object;
37
+ export type PropAST = any;
38
38
 
39
39
  // $FlowFixMe[unclear-type] there's no flowtype for ASTs
40
- export type ASTNode = Object;
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-20261014-b8ec87e45",
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.333.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.333.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"