@react-native/codegen 0.76.0-nightly-20240826-6cfe51ded → 0.76.0-nightly-20240828-cf356bd19

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.
@@ -286,30 +286,10 @@ export type NativeModuleArrayTypeAnnotation<
286
286
  elementType?: T,
287
287
  }>;
288
288
 
289
- export type NativeModuleStringTypeAnnotation = $ReadOnly<{
290
- type: 'StringTypeAnnotation',
291
- }>;
292
-
293
289
  export type NativeModuleNumberTypeAnnotation = $ReadOnly<{
294
290
  type: 'NumberTypeAnnotation',
295
291
  }>;
296
292
 
297
- export type NativeModuleInt32TypeAnnotation = $ReadOnly<{
298
- type: 'Int32TypeAnnotation',
299
- }>;
300
-
301
- export type NativeModuleDoubleTypeAnnotation = $ReadOnly<{
302
- type: 'DoubleTypeAnnotation',
303
- }>;
304
-
305
- export type NativeModuleFloatTypeAnnotation = $ReadOnly<{
306
- type: 'FloatTypeAnnotation',
307
- }>;
308
-
309
- export type NativeModuleBooleanTypeAnnotation = $ReadOnly<{
310
- type: 'BooleanTypeAnnotation',
311
- }>;
312
-
313
293
  export type NativeModuleEnumMembers = $ReadOnlyArray<
314
294
  $ReadOnly<{
315
295
  name: string,
@@ -367,12 +347,12 @@ export type NativeModuleMixedTypeAnnotation = $ReadOnly<{
367
347
  }>;
368
348
 
369
349
  type NativeModuleEventEmitterBaseTypeAnnotation =
370
- | NativeModuleBooleanTypeAnnotation
371
- | NativeModuleDoubleTypeAnnotation
372
- | NativeModuleFloatTypeAnnotation
373
- | NativeModuleInt32TypeAnnotation
350
+ | BooleanTypeAnnotation
351
+ | DoubleTypeAnnotation
352
+ | FloatTypeAnnotation
353
+ | Int32TypeAnnotation
374
354
  | NativeModuleNumberTypeAnnotation
375
- | NativeModuleStringTypeAnnotation
355
+ | StringTypeAnnotation
376
356
  | NativeModuleTypeAliasTypeAnnotation
377
357
  | NativeModuleGenericObjectTypeAnnotation
378
358
  | VoidTypeAnnotation;
@@ -385,12 +365,12 @@ export type NativeModuleEventEmitterTypeAnnotation =
385
365
  };
386
366
 
387
367
  export type NativeModuleBaseTypeAnnotation =
388
- | NativeModuleStringTypeAnnotation
368
+ | StringTypeAnnotation
389
369
  | NativeModuleNumberTypeAnnotation
390
- | NativeModuleInt32TypeAnnotation
391
- | NativeModuleDoubleTypeAnnotation
392
- | NativeModuleFloatTypeAnnotation
393
- | NativeModuleBooleanTypeAnnotation
370
+ | Int32TypeAnnotation
371
+ | DoubleTypeAnnotation
372
+ | FloatTypeAnnotation
373
+ | BooleanTypeAnnotation
394
374
  | NativeModuleEnumDeclaration
395
375
  | NativeModuleGenericObjectTypeAnnotation
396
376
  | ReservedTypeAnnotation
@@ -13,15 +13,15 @@
13
13
  import type {
14
14
  NativeModuleArrayTypeAnnotation,
15
15
  NativeModuleBaseTypeAnnotation,
16
- NativeModuleBooleanTypeAnnotation,
17
- NativeModuleDoubleTypeAnnotation,
16
+ BooleanTypeAnnotation,
17
+ DoubleTypeAnnotation,
18
18
  NativeModuleEnumDeclaration,
19
- NativeModuleFloatTypeAnnotation,
19
+ FloatTypeAnnotation,
20
20
  NativeModuleGenericObjectTypeAnnotation,
21
- NativeModuleInt32TypeAnnotation,
21
+ Int32TypeAnnotation,
22
22
  NativeModuleNumberTypeAnnotation,
23
23
  NativeModuleObjectTypeAnnotation,
24
- NativeModuleStringTypeAnnotation,
24
+ StringTypeAnnotation,
25
25
  NativeModuleTypeAliasTypeAnnotation,
26
26
  Nullable,
27
27
  ReservedTypeAnnotation,
@@ -57,12 +57,12 @@ export type StructProperty = $ReadOnly<{
57
57
  }>;
58
58
 
59
59
  export type StructTypeAnnotation =
60
- | NativeModuleStringTypeAnnotation
60
+ | StringTypeAnnotation
61
61
  | NativeModuleNumberTypeAnnotation
62
- | NativeModuleInt32TypeAnnotation
63
- | NativeModuleDoubleTypeAnnotation
64
- | NativeModuleFloatTypeAnnotation
65
- | NativeModuleBooleanTypeAnnotation
62
+ | Int32TypeAnnotation
63
+ | DoubleTypeAnnotation
64
+ | FloatTypeAnnotation
65
+ | BooleanTypeAnnotation
66
66
  | NativeModuleEnumDeclaration
67
67
  | NativeModuleGenericObjectTypeAnnotation
68
68
  | ReservedTypeAnnotation
@@ -20,7 +20,7 @@ import type {
20
20
  NativeModuleBaseTypeAnnotation,
21
21
  NativeModuleEnumDeclaration,
22
22
  NativeModuleEnumMap,
23
- NativeModuleFloatTypeAnnotation,
23
+ FloatTypeAnnotation,
24
24
  NativeModuleFunctionTypeAnnotation,
25
25
  NativeModuleGenericObjectTypeAnnotation,
26
26
  NativeModuleMixedTypeAnnotation,
@@ -368,9 +368,7 @@ function emitObject(
368
368
  });
369
369
  }
370
370
 
371
- function emitFloat(
372
- nullable: boolean,
373
- ): Nullable<NativeModuleFloatTypeAnnotation> {
371
+ function emitFloat(nullable: boolean): Nullable<FloatTypeAnnotation> {
374
372
  return wrapNullable(nullable, {
375
373
  type: 'FloatTypeAnnotation',
376
374
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native/codegen",
3
- "version": "0.76.0-nightly-20240826-6cfe51ded",
3
+ "version": "0.76.0-nightly-20240828-cf356bd19",
4
4
  "description": "Code generation tools for React Native",
5
5
  "license": "MIT",
6
6
  "repository": {