@react-native/codegen 0.72.1 → 0.72.2

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.
Files changed (119) hide show
  1. package/lib/CodegenSchema.d.ts +348 -0
  2. package/lib/CodegenSchema.js.flow +31 -3
  3. package/lib/SchemaValidator.d.ts +11 -0
  4. package/lib/cli/combine/combine-js-to-schema.js +8 -8
  5. package/lib/cli/combine/combine-js-to-schema.js.flow +8 -7
  6. package/lib/cli/parser/parser.js +8 -15
  7. package/lib/cli/parser/parser.js.flow +8 -14
  8. package/lib/generators/Utils.js +16 -0
  9. package/lib/generators/Utils.js.flow +20 -0
  10. package/lib/generators/__test_fixtures__/fixtures.js +2 -1
  11. package/lib/generators/__test_fixtures__/fixtures.js.flow +2 -1
  12. package/lib/generators/components/ComponentsGeneratorUtils.js +10 -1
  13. package/lib/generators/components/ComponentsGeneratorUtils.js.flow +12 -2
  14. package/lib/generators/components/CppHelpers.js +8 -15
  15. package/lib/generators/components/CppHelpers.js.flow +8 -19
  16. package/lib/generators/components/GenerateEventEmitterCpp.js +7 -3
  17. package/lib/generators/components/GenerateEventEmitterCpp.js.flow +7 -3
  18. package/lib/generators/components/GenerateEventEmitterH.js +2 -2
  19. package/lib/generators/components/GenerateEventEmitterH.js.flow +1 -2
  20. package/lib/generators/components/GeneratePropsH.js +3 -4
  21. package/lib/generators/components/GeneratePropsH.js.flow +2 -4
  22. package/lib/generators/components/GeneratePropsJavaDelegate.js +2 -0
  23. package/lib/generators/components/GeneratePropsJavaDelegate.js.flow +2 -0
  24. package/lib/generators/components/GeneratePropsJavaInterface.js +3 -0
  25. package/lib/generators/components/GeneratePropsJavaInterface.js.flow +3 -0
  26. package/lib/generators/components/GeneratePropsJavaPojo/serializePojo.js +8 -0
  27. package/lib/generators/components/GeneratePropsJavaPojo/serializePojo.js.flow +12 -0
  28. package/lib/generators/components/GenerateTests.js +3 -2
  29. package/lib/generators/components/GenerateTests.js.flow +3 -1
  30. package/lib/generators/components/GenerateViewConfigJs.js +5 -2
  31. package/lib/generators/components/GenerateViewConfigJs.js.flow +5 -2
  32. package/lib/generators/components/JavaHelpers.js +9 -0
  33. package/lib/generators/components/JavaHelpers.js.flow +12 -1
  34. package/lib/generators/components/__test_fixtures__/fixtures.js +41 -0
  35. package/lib/generators/components/__test_fixtures__/fixtures.js.flow +42 -0
  36. package/lib/generators/modules/GenerateModuleCpp.js +9 -4
  37. package/lib/generators/modules/GenerateModuleCpp.js.flow +11 -3
  38. package/lib/generators/modules/GenerateModuleH.js +185 -33
  39. package/lib/generators/modules/GenerateModuleH.js.flow +203 -25
  40. package/lib/generators/modules/GenerateModuleJavaSpec.js +2 -2
  41. package/lib/generators/modules/GenerateModuleJavaSpec.js.flow +5 -5
  42. package/lib/generators/modules/GenerateModuleJniCpp.js +2 -2
  43. package/lib/generators/modules/GenerateModuleJniCpp.js.flow +5 -5
  44. package/lib/generators/modules/GenerateModuleObjCpp/index.js +2 -2
  45. package/lib/generators/modules/GenerateModuleObjCpp/index.js.flow +2 -2
  46. package/lib/generators/modules/GenerateModuleObjCpp/serializeMethod.js.flow +2 -2
  47. package/lib/generators/modules/Utils.js +4 -0
  48. package/lib/generators/modules/Utils.js.flow +6 -0
  49. package/lib/generators/modules/__test_fixtures__/fixtures.js +152 -10
  50. package/lib/generators/modules/__test_fixtures__/fixtures.js.flow +152 -10
  51. package/lib/parsers/error-utils.js +1 -19
  52. package/lib/parsers/error-utils.js.flow +1 -19
  53. package/lib/parsers/errors.d.ts +10 -0
  54. package/lib/parsers/errors.js +9 -29
  55. package/lib/parsers/errors.js.flow +2 -20
  56. package/lib/parsers/flow/Visitor.js +37 -0
  57. package/lib/parsers/flow/Visitor.js.flow +41 -0
  58. package/lib/parsers/flow/components/__test_fixtures__/fixtures.js +20 -2
  59. package/lib/parsers/flow/components/__test_fixtures__/fixtures.js.flow +20 -2
  60. package/lib/parsers/flow/components/commands.js +3 -0
  61. package/lib/parsers/flow/components/commands.js.flow +2 -1
  62. package/lib/parsers/flow/components/componentsUtils.js +10 -0
  63. package/lib/parsers/flow/components/componentsUtils.js.flow +11 -1
  64. package/lib/parsers/flow/components/events.js.flow +1 -1
  65. package/lib/parsers/flow/components/extends.js.flow +1 -1
  66. package/lib/parsers/flow/components/index.js.flow +1 -1
  67. package/lib/parsers/flow/components/options.js.flow +1 -1
  68. package/lib/parsers/flow/components/props.js.flow +1 -1
  69. package/lib/parsers/flow/modules/__test_fixtures__/failures.js +54 -0
  70. package/lib/parsers/flow/modules/__test_fixtures__/failures.js.flow +56 -0
  71. package/lib/parsers/flow/modules/__test_fixtures__/fixtures.js +64 -1
  72. package/lib/parsers/flow/modules/__test_fixtures__/fixtures.js.flow +66 -1
  73. package/lib/parsers/flow/modules/index.js +99 -25
  74. package/lib/parsers/flow/modules/index.js.flow +106 -22
  75. package/lib/parsers/flow/parser.d.ts +10 -0
  76. package/lib/parsers/flow/parser.js +122 -32
  77. package/lib/parsers/flow/parser.js.flow +144 -24
  78. package/lib/parsers/flow/utils.js +33 -19
  79. package/lib/parsers/flow/utils.js.flow +37 -22
  80. package/lib/parsers/parser.d.ts +17 -0
  81. package/lib/parsers/parser.js.flow +102 -17
  82. package/lib/parsers/parserMock.js +87 -30
  83. package/lib/parsers/parserMock.js.flow +118 -24
  84. package/lib/parsers/parsers-commons.js +121 -119
  85. package/lib/parsers/parsers-commons.js.flow +130 -131
  86. package/lib/parsers/parsers-primitives.js +75 -12
  87. package/lib/parsers/parsers-primitives.js.flow +92 -13
  88. package/lib/parsers/schema/index.d.ts +10 -0
  89. package/lib/parsers/typescript/Visitor.js +42 -0
  90. package/lib/parsers/typescript/Visitor.js.flow +47 -0
  91. package/lib/parsers/typescript/components/__test_fixtures__/fixtures.js +22 -0
  92. package/lib/parsers/typescript/components/__test_fixtures__/fixtures.js.flow +22 -0
  93. package/lib/parsers/typescript/components/commands.js +3 -0
  94. package/lib/parsers/typescript/components/commands.js.flow +2 -1
  95. package/lib/parsers/typescript/components/componentsUtils.js +5 -0
  96. package/lib/parsers/typescript/components/componentsUtils.js.flow +6 -1
  97. package/lib/parsers/typescript/components/events.js.flow +1 -1
  98. package/lib/parsers/typescript/components/extends.js.flow +1 -1
  99. package/lib/parsers/typescript/components/index.js.flow +1 -1
  100. package/lib/parsers/typescript/components/options.js.flow +1 -1
  101. package/lib/parsers/typescript/components/props.js.flow +1 -1
  102. package/lib/parsers/typescript/modules/__test_fixtures__/failures.js +52 -0
  103. package/lib/parsers/typescript/modules/__test_fixtures__/failures.js.flow +54 -0
  104. package/lib/parsers/typescript/modules/__test_fixtures__/fixtures.js +142 -0
  105. package/lib/parsers/typescript/modules/__test_fixtures__/fixtures.js.flow +146 -0
  106. package/lib/parsers/typescript/modules/index.js +266 -87
  107. package/lib/parsers/typescript/modules/index.js.flow +230 -48
  108. package/lib/parsers/typescript/parser.d.ts +10 -0
  109. package/lib/parsers/typescript/parser.js +131 -25
  110. package/lib/parsers/typescript/parser.js.flow +137 -26
  111. package/lib/parsers/typescript/utils.js +40 -20
  112. package/lib/parsers/typescript/utils.js.flow +44 -24
  113. package/lib/parsers/utils.js +0 -125
  114. package/lib/parsers/utils.js.flow +3 -70
  115. package/package.json +4 -1
  116. package/lib/parsers/flow/index.js +0 -80
  117. package/lib/parsers/flow/index.js.flow +0 -85
  118. package/lib/parsers/typescript/index.js +0 -85
  119. package/lib/parsers/typescript/index.js.flow +0 -94
@@ -109,6 +109,11 @@ function getTypeAnnotationForArray(
109
109
  type: 'ReservedPropTypeAnnotation',
110
110
  name: 'EdgeInsetsPrimitive',
111
111
  };
112
+ case 'DimensionValue':
113
+ return {
114
+ type: 'ReservedPropTypeAnnotation',
115
+ name: 'DimensionPrimitive',
116
+ };
112
117
  case 'Stringish':
113
118
  return {
114
119
  type: 'StringTypeAnnotation',
@@ -274,6 +279,11 @@ function getTypeAnnotation(
274
279
  type: 'ReservedPropTypeAnnotation',
275
280
  name: 'EdgeInsetsPrimitive',
276
281
  };
282
+ case 'DimensionValue':
283
+ return {
284
+ type: 'ReservedPropTypeAnnotation',
285
+ name: 'DimensionPrimitive',
286
+ };
277
287
  case 'Int32':
278
288
  return {
279
289
  type: 'Int32TypeAnnotation',
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -123,6 +123,11 @@ function getTypeAnnotationForArray<+T>(
123
123
  type: 'ReservedPropTypeAnnotation',
124
124
  name: 'EdgeInsetsPrimitive',
125
125
  };
126
+ case 'DimensionValue':
127
+ return {
128
+ type: 'ReservedPropTypeAnnotation',
129
+ name: 'DimensionPrimitive',
130
+ };
126
131
  case 'Stringish':
127
132
  return {
128
133
  type: 'StringTypeAnnotation',
@@ -303,6 +308,11 @@ function getTypeAnnotation<+T>(
303
308
  type: 'ReservedPropTypeAnnotation',
304
309
  name: 'EdgeInsetsPrimitive',
305
310
  };
311
+ case 'DimensionValue':
312
+ return {
313
+ type: 'ReservedPropTypeAnnotation',
314
+ name: 'DimensionPrimitive',
315
+ };
306
316
  case 'Int32':
307
317
  return {
308
318
  type: 'Int32TypeAnnotation',
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @flow strict-local
7
+ * @flow strict
8
8
  * @format
9
9
  */
10
10
 
@@ -202,6 +202,58 @@ export interface Spec2 extends TurboModule {
202
202
  }
203
203
 
204
204
 
205
+ `;
206
+ const EMPTY_ENUM_NATIVE_MODULE = `
207
+ /**
208
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
209
+ *
210
+ * This source code is licensed under the MIT license found in the
211
+ * LICENSE file in the root directory of this source tree.
212
+ *
213
+ * @flow strict-local
214
+ * @format
215
+ */
216
+
217
+ 'use strict';
218
+
219
+ import type {TurboModule} from '../RCTExport';
220
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
221
+
222
+ export enum SomeEnum {
223
+ }
224
+
225
+ export interface Spec extends TurboModule {
226
+ +getEnums: (a: SomeEnum) => string;
227
+ }
228
+
229
+ export default TurboModuleRegistry.getEnforcing<Spec>('EmptyEnumNativeModule');
230
+ `;
231
+ const MIXED_VALUES_ENUM_NATIVE_MODULE = `
232
+ /**
233
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
234
+ *
235
+ * This source code is licensed under the MIT license found in the
236
+ * LICENSE file in the root directory of this source tree.
237
+ *
238
+ * @flow strict-local
239
+ * @format
240
+ */
241
+
242
+ 'use strict';
243
+
244
+ import type {TurboModule} from '../RCTExport';
245
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
246
+
247
+ export enum SomeEnum {
248
+ NUM = 1,
249
+ STR = 'str',
250
+ }
251
+
252
+ export interface Spec extends TurboModule {
253
+ +getEnums: (a: SomeEnum) => string;
254
+ }
255
+
256
+ export default TurboModuleRegistry.getEnforcing<Spec>('MixedValuesEnumNativeModule');
205
257
  `;
206
258
  module.exports = {
207
259
  NATIVE_MODULES_WITH_READ_ONLY_OBJECT_NO_TYPE_FOR_CONTENT,
@@ -212,4 +264,6 @@ module.exports = {
212
264
  TWO_NATIVE_MODULES_EXPORTED_WITH_DEFAULT,
213
265
  NATIVE_MODULES_WITH_NOT_ONLY_METHODS,
214
266
  TWO_NATIVE_EXTENDING_TURBO_MODULE,
267
+ EMPTY_ENUM_NATIVE_MODULE,
268
+ MIXED_VALUES_ENUM_NATIVE_MODULE,
215
269
  };
@@ -211,6 +211,60 @@ export interface Spec2 extends TurboModule {
211
211
 
212
212
  `;
213
213
 
214
+ const EMPTY_ENUM_NATIVE_MODULE = `
215
+ /**
216
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
217
+ *
218
+ * This source code is licensed under the MIT license found in the
219
+ * LICENSE file in the root directory of this source tree.
220
+ *
221
+ * @flow strict-local
222
+ * @format
223
+ */
224
+
225
+ 'use strict';
226
+
227
+ import type {TurboModule} from '../RCTExport';
228
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
229
+
230
+ export enum SomeEnum {
231
+ }
232
+
233
+ export interface Spec extends TurboModule {
234
+ +getEnums: (a: SomeEnum) => string;
235
+ }
236
+
237
+ export default TurboModuleRegistry.getEnforcing<Spec>('EmptyEnumNativeModule');
238
+ `;
239
+
240
+ const MIXED_VALUES_ENUM_NATIVE_MODULE = `
241
+ /**
242
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
243
+ *
244
+ * This source code is licensed under the MIT license found in the
245
+ * LICENSE file in the root directory of this source tree.
246
+ *
247
+ * @flow strict-local
248
+ * @format
249
+ */
250
+
251
+ 'use strict';
252
+
253
+ import type {TurboModule} from '../RCTExport';
254
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
255
+
256
+ export enum SomeEnum {
257
+ NUM = 1,
258
+ STR = 'str',
259
+ }
260
+
261
+ export interface Spec extends TurboModule {
262
+ +getEnums: (a: SomeEnum) => string;
263
+ }
264
+
265
+ export default TurboModuleRegistry.getEnforcing<Spec>('MixedValuesEnumNativeModule');
266
+ `;
267
+
214
268
  module.exports = {
215
269
  NATIVE_MODULES_WITH_READ_ONLY_OBJECT_NO_TYPE_FOR_CONTENT,
216
270
  NATIVE_MODULES_WITH_UNNAMED_PARAMS,
@@ -220,4 +274,6 @@ module.exports = {
220
274
  TWO_NATIVE_MODULES_EXPORTED_WITH_DEFAULT,
221
275
  NATIVE_MODULES_WITH_NOT_ONLY_METHODS,
222
276
  TWO_NATIVE_EXTENDING_TURBO_MODULE,
277
+ EMPTY_ENUM_NATIVE_MODULE,
278
+ MIXED_VALUES_ENUM_NATIVE_MODULE,
223
279
  };
@@ -278,6 +278,66 @@ export interface Spec extends TurboModule {
278
278
 
279
279
  export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
280
280
 
281
+ `;
282
+ const NATIVE_MODULE_WITH_PARTIALS = `
283
+ /**
284
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
285
+ *
286
+ * This source code is licensed under the MIT license found in the
287
+ * LICENSE file in the root directory of this source tree.
288
+ *
289
+ * @flow strict-local
290
+ * @format
291
+ */
292
+
293
+ 'use strict';
294
+
295
+ import type {TurboModule} from '../RCTExport';
296
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
297
+
298
+ export type SomeObj = {|
299
+ a: string,
300
+ b?: boolean,
301
+ |};
302
+
303
+ export interface Spec extends TurboModule {
304
+ +getSomeObj: () => SomeObj;
305
+ +getPartialSomeObj: () => $Partial<SomeObj>;
306
+ +getSomeObjFromPartialSomeObj: (value: $Partial<SomeObj>) => SomeObj;
307
+ }
308
+
309
+ export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
310
+
311
+ `;
312
+ const NATIVE_MODULE_WITH_PARTIALS_COMPLEX = `
313
+ /**
314
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
315
+ *
316
+ * This source code is licensed under the MIT license found in the
317
+ * LICENSE file in the root directory of this source tree.
318
+ *
319
+ * @flow strict-local
320
+ * @format
321
+ */
322
+
323
+ 'use strict';
324
+
325
+ import type {TurboModule} from '../RCTExport';
326
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
327
+
328
+ export type SomeObj = {|
329
+ a: string,
330
+ b?: boolean,
331
+ |};
332
+
333
+ export type PartialSomeObj = $Partial<SomeObj>;
334
+
335
+ export interface Spec extends TurboModule {
336
+ +getPartialPartial: (value1: $Partial<SomeObj>, value2: PartialSomeObj) => SomeObj
337
+ }
338
+
339
+ export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
340
+
281
341
  `;
282
342
  const NATIVE_MODULE_WITH_ROOT_TAG = `
283
343
  /**
@@ -690,7 +750,8 @@ export interface Spec extends TurboModule {
690
750
  returnObjectArray(): Promise<Array<Object>>;
691
751
  returnNullableNumber(): Promise<number | null>;
692
752
  returnEmpty(): Promise<empty>;
693
- returnIndex(): Promise<{ [string]: 'authorized' | 'denied' | 'undetermined' | true | false }>;
753
+ returnUnsupportedIndex(): Promise<{ [string]: 'authorized' | 'denied' | 'undetermined' | true | false }>;
754
+ returnSupportedIndex(): Promise<{ [string]: CustomObject }>;
694
755
  returnEnum() : Promise<Season>;
695
756
  returnObject() : Promise<CustomObject>;
696
757
  }
@@ -708,6 +769,8 @@ module.exports = {
708
769
  NATIVE_MODULE_WITH_COMPLEX_OBJECTS_WITH_NULLABLE_KEY,
709
770
  NATIVE_MODULE_WITH_SIMPLE_OBJECT,
710
771
  NATIVE_MODULE_WITH_UNSAFE_OBJECT,
772
+ NATIVE_MODULE_WITH_PARTIALS,
773
+ NATIVE_MODULE_WITH_PARTIALS_COMPLEX,
711
774
  NATIVE_MODULE_WITH_ROOT_TAG,
712
775
  NATIVE_MODULE_WITH_NULLABLE_PARAM,
713
776
  NATIVE_MODULE_WITH_BASIC_ARRAY,
@@ -288,6 +288,68 @@ export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
288
288
 
289
289
  `;
290
290
 
291
+ const NATIVE_MODULE_WITH_PARTIALS = `
292
+ /**
293
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
294
+ *
295
+ * This source code is licensed under the MIT license found in the
296
+ * LICENSE file in the root directory of this source tree.
297
+ *
298
+ * @flow strict-local
299
+ * @format
300
+ */
301
+
302
+ 'use strict';
303
+
304
+ import type {TurboModule} from '../RCTExport';
305
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
306
+
307
+ export type SomeObj = {|
308
+ a: string,
309
+ b?: boolean,
310
+ |};
311
+
312
+ export interface Spec extends TurboModule {
313
+ +getSomeObj: () => SomeObj;
314
+ +getPartialSomeObj: () => $Partial<SomeObj>;
315
+ +getSomeObjFromPartialSomeObj: (value: $Partial<SomeObj>) => SomeObj;
316
+ }
317
+
318
+ export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
319
+
320
+ `;
321
+
322
+ const NATIVE_MODULE_WITH_PARTIALS_COMPLEX = `
323
+ /**
324
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
325
+ *
326
+ * This source code is licensed under the MIT license found in the
327
+ * LICENSE file in the root directory of this source tree.
328
+ *
329
+ * @flow strict-local
330
+ * @format
331
+ */
332
+
333
+ 'use strict';
334
+
335
+ import type {TurboModule} from '../RCTExport';
336
+ import * as TurboModuleRegistry from '../TurboModuleRegistry';
337
+
338
+ export type SomeObj = {|
339
+ a: string,
340
+ b?: boolean,
341
+ |};
342
+
343
+ export type PartialSomeObj = $Partial<SomeObj>;
344
+
345
+ export interface Spec extends TurboModule {
346
+ +getPartialPartial: (value1: $Partial<SomeObj>, value2: PartialSomeObj) => SomeObj
347
+ }
348
+
349
+ export default TurboModuleRegistry.getEnforcing<Spec>('SampleTurboModule');
350
+
351
+ `;
352
+
291
353
  const NATIVE_MODULE_WITH_ROOT_TAG = `
292
354
  /**
293
355
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -712,7 +774,8 @@ export interface Spec extends TurboModule {
712
774
  returnObjectArray(): Promise<Array<Object>>;
713
775
  returnNullableNumber(): Promise<number | null>;
714
776
  returnEmpty(): Promise<empty>;
715
- returnIndex(): Promise<{ [string]: 'authorized' | 'denied' | 'undetermined' | true | false }>;
777
+ returnUnsupportedIndex(): Promise<{ [string]: 'authorized' | 'denied' | 'undetermined' | true | false }>;
778
+ returnSupportedIndex(): Promise<{ [string]: CustomObject }>;
716
779
  returnEnum() : Promise<Season>;
717
780
  returnObject() : Promise<CustomObject>;
718
781
  }
@@ -731,6 +794,8 @@ module.exports = {
731
794
  NATIVE_MODULE_WITH_COMPLEX_OBJECTS_WITH_NULLABLE_KEY,
732
795
  NATIVE_MODULE_WITH_SIMPLE_OBJECT,
733
796
  NATIVE_MODULE_WITH_UNSAFE_OBJECT,
797
+ NATIVE_MODULE_WITH_PARTIALS,
798
+ NATIVE_MODULE_WITH_PARTIALS_COMPLEX,
734
799
  NATIVE_MODULE_WITH_ROOT_TAG,
735
800
  NATIVE_MODULE_WITH_NULLABLE_PARAM,
736
801
  NATIVE_MODULE_WITH_BASIC_ARRAY,