@react-native/codegen 0.76.0-nightly-20240826-6cfe51ded → 0.76.0-nightly-20240827-851037d14
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
|
-
|
|
|
371
|
-
|
|
|
372
|
-
|
|
|
373
|
-
|
|
|
350
|
+
| BooleanTypeAnnotation
|
|
351
|
+
| DoubleTypeAnnotation
|
|
352
|
+
| FloatTypeAnnotation
|
|
353
|
+
| Int32TypeAnnotation
|
|
374
354
|
| NativeModuleNumberTypeAnnotation
|
|
375
|
-
|
|
|
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
|
-
|
|
|
368
|
+
| StringTypeAnnotation
|
|
389
369
|
| NativeModuleNumberTypeAnnotation
|
|
390
|
-
|
|
|
391
|
-
|
|
|
392
|
-
|
|
|
393
|
-
|
|
|
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
|
-
|
|
17
|
-
|
|
16
|
+
BooleanTypeAnnotation,
|
|
17
|
+
DoubleTypeAnnotation,
|
|
18
18
|
NativeModuleEnumDeclaration,
|
|
19
|
-
|
|
19
|
+
FloatTypeAnnotation,
|
|
20
20
|
NativeModuleGenericObjectTypeAnnotation,
|
|
21
|
-
|
|
21
|
+
Int32TypeAnnotation,
|
|
22
22
|
NativeModuleNumberTypeAnnotation,
|
|
23
23
|
NativeModuleObjectTypeAnnotation,
|
|
24
|
-
|
|
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
|
-
|
|
|
60
|
+
| StringTypeAnnotation
|
|
61
61
|
| NativeModuleNumberTypeAnnotation
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
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
|
-
|
|
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
|
});
|