@react-native/codegen 0.85.0-rc.0 → 0.86.0-nightly-20260305-c45c5cfc8
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.
|
@@ -53,7 +53,7 @@ function getCppArrayTypeForAnnotation(typeElement, structParts) {
|
|
|
53
53
|
case 'object':
|
|
54
54
|
if (!structParts) {
|
|
55
55
|
throw new Error(
|
|
56
|
-
`Trying to generate the event emitter for an Array of ${typeElement.type} without
|
|
56
|
+
`Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`,
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
return `std::vector<${generateEventStructName(structParts)}>`;
|
|
@@ -65,7 +65,7 @@ function getCppArrayTypeForAnnotation(typeElement, structParts) {
|
|
|
65
65
|
) {
|
|
66
66
|
if (!structParts) {
|
|
67
67
|
throw new Error(
|
|
68
|
-
`Trying to generate the event emitter for an Array of ${typeElement.type} without
|
|
68
|
+
`Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`,
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
return `std::vector<${generateEventStructName(structParts)}>`;
|
|
@@ -72,7 +72,7 @@ function getCppArrayTypeForAnnotation(
|
|
|
72
72
|
case 'object':
|
|
73
73
|
if (!structParts) {
|
|
74
74
|
throw new Error(
|
|
75
|
-
`Trying to generate the event emitter for an Array of ${typeElement.type} without
|
|
75
|
+
`Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`,
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
return `std::vector<${generateEventStructName(structParts)}>`;
|
|
@@ -84,7 +84,7 @@ function getCppArrayTypeForAnnotation(
|
|
|
84
84
|
) {
|
|
85
85
|
if (!structParts) {
|
|
86
86
|
throw new Error(
|
|
87
|
-
`Trying to generate the event emitter for an Array of ${typeElement.type} without
|
|
87
|
+
`Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`,
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
return `std::vector<${generateEventStructName(structParts)}>`;
|