hermes-transform 0.9.0 → 0.10.1

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 (64) hide show
  1. package/dist/detachedNode.js +9 -27
  2. package/dist/detachedNode.js.flow +21 -34
  3. package/dist/generated/TransformCloneSignatures.js.flow +331 -316
  4. package/dist/generated/TransformModifySignatures.js.flow +171 -157
  5. package/dist/generated/TransformReplaceSignatures.js.flow +16 -2
  6. package/dist/generated/node-types.js +254 -60
  7. package/dist/generated/node-types.js.flow +258 -103
  8. package/dist/generated/special-case-node-types/Comment.js +36 -0
  9. package/dist/generated/special-case-node-types/Comment.js.flow +36 -0
  10. package/dist/generated/special-case-node-types/DeclareExportDeclaration.js +55 -0
  11. package/dist/generated/special-case-node-types/DeclareExportDeclaration.js.flow +97 -0
  12. package/dist/generated/special-case-node-types/ExportNamedDeclaration.js +42 -0
  13. package/dist/generated/special-case-node-types/ExportNamedDeclaration.js.flow +75 -0
  14. package/dist/generated/special-case-node-types/Literal.js +97 -0
  15. package/dist/generated/special-case-node-types/Literal.js.flow +139 -0
  16. package/dist/generated/special-case-node-types/ObjectTypeProperty.js +73 -0
  17. package/dist/generated/special-case-node-types/ObjectTypeProperty.js.flow +107 -0
  18. package/dist/generated/special-case-node-types/Property.js +136 -0
  19. package/dist/generated/special-case-node-types/Property.js.flow +237 -0
  20. package/dist/generated/special-case-node-types/misc.js +119 -0
  21. package/dist/generated/special-case-node-types/misc.js.flow +205 -0
  22. package/dist/generated/special-case-node-types.js +42 -174
  23. package/dist/generated/special-case-node-types.js.flow +7 -274
  24. package/dist/index.js +19 -3
  25. package/dist/index.js.flow +6 -2
  26. package/dist/transform/TransformContext.js +1 -1
  27. package/dist/transform/TransformContext.js.flow +2 -2
  28. package/dist/transform/comments/comments.js +11 -0
  29. package/dist/transform/comments/comments.js.flow +16 -1
  30. package/dist/transform/comments/prettier/main/comments.js +1 -1
  31. package/dist/transform/comments/prettier/main/comments.js.flow +2 -1
  32. package/dist/transform/mutations/InsertStatement.js +3 -3
  33. package/dist/transform/mutations/InsertStatement.js.flow +3 -3
  34. package/dist/transform/mutations/RemoveComment.js +3 -3
  35. package/dist/transform/mutations/RemoveComment.js.flow +3 -5
  36. package/dist/transform/mutations/RemoveNode.js +2 -2
  37. package/dist/transform/mutations/RemoveNode.js.flow +2 -2
  38. package/dist/transform/mutations/RemoveStatement.js +2 -2
  39. package/dist/transform/mutations/RemoveStatement.js.flow +2 -2
  40. package/dist/transform/mutations/ReplaceNode.js +4 -6
  41. package/dist/transform/mutations/ReplaceNode.js.flow +2 -3
  42. package/dist/transform/mutations/ReplaceStatementWithMany.js +2 -2
  43. package/dist/transform/mutations/ReplaceStatementWithMany.js.flow +2 -2
  44. package/dist/transform/mutations/utils/getStatementParent.js +3 -2
  45. package/dist/transform/mutations/utils/getStatementParent.js.flow +5 -2
  46. package/dist/transform/parse.js +55 -0
  47. package/dist/transform/parse.js.flow +55 -0
  48. package/dist/transform/print.js +160 -0
  49. package/dist/transform/print.js.flow +176 -0
  50. package/dist/transform/transform.js +6 -67
  51. package/dist/transform/transform.js.flow +6 -69
  52. package/dist/transform/{getTransformedAST.js → transformAST.js} +7 -31
  53. package/dist/transform/{getTransformedAST.js.flow → transformAST.js.flow} +8 -33
  54. package/dist/traverse/NodeEventGenerator.js +3 -3
  55. package/dist/traverse/NodeEventGenerator.js.flow +3 -3
  56. package/dist/traverse/traverse.js +36 -35
  57. package/dist/traverse/traverse.js.flow +45 -26
  58. package/package.json +5 -4
  59. package/dist/getVisitorKeys.js +0 -33
  60. package/dist/getVisitorKeys.js.flow +0 -31
  61. package/dist/transform/mutations/utils/arrayUtils.js +0 -43
  62. package/dist/transform/mutations/utils/arrayUtils.js.flow +0 -50
  63. package/dist/traverse/SimpleTraverser.js +0 -118
  64. package/dist/traverse/SimpleTraverser.js.flow +0 -112
@@ -6,11 +6,18 @@
6
6
  *
7
7
  * @flow strict-local
8
8
  * @format
9
+ * @generated
10
+ */
11
+
12
+ /*
13
+ * !!! GENERATED FILE !!!
14
+ *
15
+ * Any manual changes to this file will be overwritten. To regenerate run `yarn build`.
9
16
  */
10
17
 
11
18
  // lint directives to let us do some basic validation of generated files
12
19
  /* eslint no-undef: 'error', no-unused-vars: ['error', {vars: "local"}], no-redeclare: 'error' */
13
- /* global $NonMaybeType, $Partial, $ReadOnly, $ReadOnlyArray */
20
+ /* global $NonMaybeType, Partial, $ReadOnly, $ReadOnlyArray */
14
21
 
15
22
  'use strict';
16
23
 
@@ -25,6 +32,7 @@ import type {
25
32
  AwaitExpression,
26
33
  BigIntLiteral,
27
34
  BigIntLiteralTypeAnnotation,
35
+ BigIntTypeAnnotation,
28
36
  BinaryExpression,
29
37
  BlockStatement,
30
38
  BooleanLiteral,
@@ -183,6 +191,7 @@ import type {
183
191
  AwaitExpressionProps,
184
192
  BigIntLiteralProps,
185
193
  BigIntLiteralTypeAnnotationProps,
194
+ BigIntTypeAnnotationProps,
186
195
  BinaryExpressionProps,
187
196
  BlockStatementProps,
188
197
  BooleanLiteralProps,
@@ -334,1251 +343,1256 @@ import type {DetachedNode} from '../detachedNode';
334
343
 
335
344
  type AnyTypeAnnotationCloneSignature = ((
336
345
  node: AnyTypeAnnotation,
337
- newProps: $Partial<AnyTypeAnnotationProps>,
346
+ newProps: Partial<AnyTypeAnnotationProps>,
338
347
  ) => DetachedNode<AnyTypeAnnotation>) &
339
348
  ((
340
349
  node: ?AnyTypeAnnotation,
341
- newProps: $Partial<AnyTypeAnnotationProps>,
350
+ newProps: Partial<AnyTypeAnnotationProps>,
342
351
  ) => DetachedNode<AnyTypeAnnotation> | null);
343
352
  type ArrayExpressionCloneSignature = ((
344
353
  node: ArrayExpression,
345
- newProps: $Partial<ArrayExpressionProps>,
354
+ newProps: Partial<ArrayExpressionProps>,
346
355
  ) => DetachedNode<ArrayExpression>) &
347
356
  ((
348
357
  node: ?ArrayExpression,
349
- newProps: $Partial<ArrayExpressionProps>,
358
+ newProps: Partial<ArrayExpressionProps>,
350
359
  ) => DetachedNode<ArrayExpression> | null);
351
360
  type ArrayPatternCloneSignature = ((
352
361
  node: ArrayPattern,
353
- newProps: $Partial<ArrayPatternProps>,
362
+ newProps: Partial<ArrayPatternProps>,
354
363
  ) => DetachedNode<ArrayPattern>) &
355
364
  ((
356
365
  node: ?ArrayPattern,
357
- newProps: $Partial<ArrayPatternProps>,
366
+ newProps: Partial<ArrayPatternProps>,
358
367
  ) => DetachedNode<ArrayPattern> | null);
359
368
  type ArrayTypeAnnotationCloneSignature = ((
360
369
  node: ArrayTypeAnnotation,
361
- newProps: $Partial<ArrayTypeAnnotationProps>,
370
+ newProps: Partial<ArrayTypeAnnotationProps>,
362
371
  ) => DetachedNode<ArrayTypeAnnotation>) &
363
372
  ((
364
373
  node: ?ArrayTypeAnnotation,
365
- newProps: $Partial<ArrayTypeAnnotationProps>,
374
+ newProps: Partial<ArrayTypeAnnotationProps>,
366
375
  ) => DetachedNode<ArrayTypeAnnotation> | null);
367
376
  type ArrowFunctionExpressionCloneSignature = ((
368
377
  node: ArrowFunctionExpression,
369
- newProps: $Partial<ArrowFunctionExpressionProps>,
378
+ newProps: Partial<ArrowFunctionExpressionProps>,
370
379
  ) => DetachedNode<ArrowFunctionExpression>) &
371
380
  ((
372
381
  node: ?ArrowFunctionExpression,
373
- newProps: $Partial<ArrowFunctionExpressionProps>,
382
+ newProps: Partial<ArrowFunctionExpressionProps>,
374
383
  ) => DetachedNode<ArrowFunctionExpression> | null);
375
384
  type AssignmentExpressionCloneSignature = ((
376
385
  node: AssignmentExpression,
377
- newProps: $Partial<AssignmentExpressionProps>,
386
+ newProps: Partial<AssignmentExpressionProps>,
378
387
  ) => DetachedNode<AssignmentExpression>) &
379
388
  ((
380
389
  node: ?AssignmentExpression,
381
- newProps: $Partial<AssignmentExpressionProps>,
390
+ newProps: Partial<AssignmentExpressionProps>,
382
391
  ) => DetachedNode<AssignmentExpression> | null);
383
392
  type AssignmentPatternCloneSignature = ((
384
393
  node: AssignmentPattern,
385
- newProps: $Partial<AssignmentPatternProps>,
394
+ newProps: Partial<AssignmentPatternProps>,
386
395
  ) => DetachedNode<AssignmentPattern>) &
387
396
  ((
388
397
  node: ?AssignmentPattern,
389
- newProps: $Partial<AssignmentPatternProps>,
398
+ newProps: Partial<AssignmentPatternProps>,
390
399
  ) => DetachedNode<AssignmentPattern> | null);
391
400
  type AwaitExpressionCloneSignature = ((
392
401
  node: AwaitExpression,
393
- newProps: $Partial<AwaitExpressionProps>,
402
+ newProps: Partial<AwaitExpressionProps>,
394
403
  ) => DetachedNode<AwaitExpression>) &
395
404
  ((
396
405
  node: ?AwaitExpression,
397
- newProps: $Partial<AwaitExpressionProps>,
406
+ newProps: Partial<AwaitExpressionProps>,
398
407
  ) => DetachedNode<AwaitExpression> | null);
399
408
  type BigIntLiteralCloneSignature = ((
400
409
  node: BigIntLiteral,
401
- newProps: $Partial<BigIntLiteralProps>,
410
+ newProps: Partial<BigIntLiteralProps>,
402
411
  ) => DetachedNode<BigIntLiteral>) &
403
412
  ((
404
413
  node: ?BigIntLiteral,
405
- newProps: $Partial<BigIntLiteralProps>,
414
+ newProps: Partial<BigIntLiteralProps>,
406
415
  ) => DetachedNode<BigIntLiteral> | null);
407
416
  type BigIntLiteralTypeAnnotationCloneSignature = ((
408
417
  node: BigIntLiteralTypeAnnotation,
409
- newProps: $Partial<BigIntLiteralTypeAnnotationProps>,
418
+ newProps: Partial<BigIntLiteralTypeAnnotationProps>,
410
419
  ) => DetachedNode<BigIntLiteralTypeAnnotation>) &
411
420
  ((
412
421
  node: ?BigIntLiteralTypeAnnotation,
413
- newProps: $Partial<BigIntLiteralTypeAnnotationProps>,
422
+ newProps: Partial<BigIntLiteralTypeAnnotationProps>,
414
423
  ) => DetachedNode<BigIntLiteralTypeAnnotation> | null);
424
+ type BigIntTypeAnnotationCloneSignature = ((
425
+ node: BigIntTypeAnnotation,
426
+ newProps: Partial<BigIntTypeAnnotationProps>,
427
+ ) => DetachedNode<BigIntTypeAnnotation>) &
428
+ ((
429
+ node: ?BigIntTypeAnnotation,
430
+ newProps: Partial<BigIntTypeAnnotationProps>,
431
+ ) => DetachedNode<BigIntTypeAnnotation> | null);
415
432
  type BinaryExpressionCloneSignature = ((
416
433
  node: BinaryExpression,
417
- newProps: $Partial<BinaryExpressionProps>,
434
+ newProps: Partial<BinaryExpressionProps>,
418
435
  ) => DetachedNode<BinaryExpression>) &
419
436
  ((
420
437
  node: ?BinaryExpression,
421
- newProps: $Partial<BinaryExpressionProps>,
438
+ newProps: Partial<BinaryExpressionProps>,
422
439
  ) => DetachedNode<BinaryExpression> | null);
423
440
  type BlockStatementCloneSignature = ((
424
441
  node: BlockStatement,
425
- newProps: $Partial<BlockStatementProps>,
442
+ newProps: Partial<BlockStatementProps>,
426
443
  ) => DetachedNode<BlockStatement>) &
427
444
  ((
428
445
  node: ?BlockStatement,
429
- newProps: $Partial<BlockStatementProps>,
446
+ newProps: Partial<BlockStatementProps>,
430
447
  ) => DetachedNode<BlockStatement> | null);
431
448
  type BooleanLiteralCloneSignature = ((
432
449
  node: BooleanLiteral,
433
- newProps: $Partial<BooleanLiteralProps>,
450
+ newProps: Partial<BooleanLiteralProps>,
434
451
  ) => DetachedNode<BooleanLiteral>) &
435
452
  ((
436
453
  node: ?BooleanLiteral,
437
- newProps: $Partial<BooleanLiteralProps>,
454
+ newProps: Partial<BooleanLiteralProps>,
438
455
  ) => DetachedNode<BooleanLiteral> | null);
439
456
  type BooleanLiteralTypeAnnotationCloneSignature = ((
440
457
  node: BooleanLiteralTypeAnnotation,
441
- newProps: $Partial<BooleanLiteralTypeAnnotationProps>,
458
+ newProps: Partial<BooleanLiteralTypeAnnotationProps>,
442
459
  ) => DetachedNode<BooleanLiteralTypeAnnotation>) &
443
460
  ((
444
461
  node: ?BooleanLiteralTypeAnnotation,
445
- newProps: $Partial<BooleanLiteralTypeAnnotationProps>,
462
+ newProps: Partial<BooleanLiteralTypeAnnotationProps>,
446
463
  ) => DetachedNode<BooleanLiteralTypeAnnotation> | null);
447
464
  type BooleanTypeAnnotationCloneSignature = ((
448
465
  node: BooleanTypeAnnotation,
449
- newProps: $Partial<BooleanTypeAnnotationProps>,
466
+ newProps: Partial<BooleanTypeAnnotationProps>,
450
467
  ) => DetachedNode<BooleanTypeAnnotation>) &
451
468
  ((
452
469
  node: ?BooleanTypeAnnotation,
453
- newProps: $Partial<BooleanTypeAnnotationProps>,
470
+ newProps: Partial<BooleanTypeAnnotationProps>,
454
471
  ) => DetachedNode<BooleanTypeAnnotation> | null);
455
472
  type BreakStatementCloneSignature = ((
456
473
  node: BreakStatement,
457
- newProps: $Partial<BreakStatementProps>,
474
+ newProps: Partial<BreakStatementProps>,
458
475
  ) => DetachedNode<BreakStatement>) &
459
476
  ((
460
477
  node: ?BreakStatement,
461
- newProps: $Partial<BreakStatementProps>,
478
+ newProps: Partial<BreakStatementProps>,
462
479
  ) => DetachedNode<BreakStatement> | null);
463
480
  type CallExpressionCloneSignature = ((
464
481
  node: CallExpression,
465
- newProps: $Partial<CallExpressionProps>,
482
+ newProps: Partial<CallExpressionProps>,
466
483
  ) => DetachedNode<CallExpression>) &
467
484
  ((
468
485
  node: ?CallExpression,
469
- newProps: $Partial<CallExpressionProps>,
486
+ newProps: Partial<CallExpressionProps>,
470
487
  ) => DetachedNode<CallExpression> | null);
471
488
  type CatchClauseCloneSignature = ((
472
489
  node: CatchClause,
473
- newProps: $Partial<CatchClauseProps>,
490
+ newProps: Partial<CatchClauseProps>,
474
491
  ) => DetachedNode<CatchClause>) &
475
492
  ((
476
493
  node: ?CatchClause,
477
- newProps: $Partial<CatchClauseProps>,
494
+ newProps: Partial<CatchClauseProps>,
478
495
  ) => DetachedNode<CatchClause> | null);
479
496
  type ChainExpressionCloneSignature = ((
480
497
  node: ChainExpression,
481
- newProps: $Partial<ChainExpressionProps>,
498
+ newProps: Partial<ChainExpressionProps>,
482
499
  ) => DetachedNode<ChainExpression>) &
483
500
  ((
484
501
  node: ?ChainExpression,
485
- newProps: $Partial<ChainExpressionProps>,
502
+ newProps: Partial<ChainExpressionProps>,
486
503
  ) => DetachedNode<ChainExpression> | null);
487
504
  type ClassBodyCloneSignature = ((
488
505
  node: ClassBody,
489
- newProps: $Partial<ClassBodyProps>,
506
+ newProps: Partial<ClassBodyProps>,
490
507
  ) => DetachedNode<ClassBody>) &
491
508
  ((
492
509
  node: ?ClassBody,
493
- newProps: $Partial<ClassBodyProps>,
510
+ newProps: Partial<ClassBodyProps>,
494
511
  ) => DetachedNode<ClassBody> | null);
495
512
  type ClassDeclarationCloneSignature = ((
496
513
  node: ClassDeclaration,
497
- newProps: $Partial<ClassDeclarationProps>,
514
+ newProps: Partial<ClassDeclarationProps>,
498
515
  ) => DetachedNode<ClassDeclaration>) &
499
516
  ((
500
517
  node: ?ClassDeclaration,
501
- newProps: $Partial<ClassDeclarationProps>,
518
+ newProps: Partial<ClassDeclarationProps>,
502
519
  ) => DetachedNode<ClassDeclaration> | null);
503
520
  type ClassExpressionCloneSignature = ((
504
521
  node: ClassExpression,
505
- newProps: $Partial<ClassExpressionProps>,
522
+ newProps: Partial<ClassExpressionProps>,
506
523
  ) => DetachedNode<ClassExpression>) &
507
524
  ((
508
525
  node: ?ClassExpression,
509
- newProps: $Partial<ClassExpressionProps>,
526
+ newProps: Partial<ClassExpressionProps>,
510
527
  ) => DetachedNode<ClassExpression> | null);
511
528
  type ClassImplementsCloneSignature = ((
512
529
  node: ClassImplements,
513
- newProps: $Partial<ClassImplementsProps>,
530
+ newProps: Partial<ClassImplementsProps>,
514
531
  ) => DetachedNode<ClassImplements>) &
515
532
  ((
516
533
  node: ?ClassImplements,
517
- newProps: $Partial<ClassImplementsProps>,
534
+ newProps: Partial<ClassImplementsProps>,
518
535
  ) => DetachedNode<ClassImplements> | null);
519
536
  type ConditionalExpressionCloneSignature = ((
520
537
  node: ConditionalExpression,
521
- newProps: $Partial<ConditionalExpressionProps>,
538
+ newProps: Partial<ConditionalExpressionProps>,
522
539
  ) => DetachedNode<ConditionalExpression>) &
523
540
  ((
524
541
  node: ?ConditionalExpression,
525
- newProps: $Partial<ConditionalExpressionProps>,
542
+ newProps: Partial<ConditionalExpressionProps>,
526
543
  ) => DetachedNode<ConditionalExpression> | null);
527
544
  type ContinueStatementCloneSignature = ((
528
545
  node: ContinueStatement,
529
- newProps: $Partial<ContinueStatementProps>,
546
+ newProps: Partial<ContinueStatementProps>,
530
547
  ) => DetachedNode<ContinueStatement>) &
531
548
  ((
532
549
  node: ?ContinueStatement,
533
- newProps: $Partial<ContinueStatementProps>,
550
+ newProps: Partial<ContinueStatementProps>,
534
551
  ) => DetachedNode<ContinueStatement> | null);
535
552
  type DebuggerStatementCloneSignature = ((
536
553
  node: DebuggerStatement,
537
- newProps: $Partial<DebuggerStatementProps>,
554
+ newProps: Partial<DebuggerStatementProps>,
538
555
  ) => DetachedNode<DebuggerStatement>) &
539
556
  ((
540
557
  node: ?DebuggerStatement,
541
- newProps: $Partial<DebuggerStatementProps>,
558
+ newProps: Partial<DebuggerStatementProps>,
542
559
  ) => DetachedNode<DebuggerStatement> | null);
543
560
  type DeclareClassCloneSignature = ((
544
561
  node: DeclareClass,
545
- newProps: $Partial<DeclareClassProps>,
562
+ newProps: Partial<DeclareClassProps>,
546
563
  ) => DetachedNode<DeclareClass>) &
547
564
  ((
548
565
  node: ?DeclareClass,
549
- newProps: $Partial<DeclareClassProps>,
566
+ newProps: Partial<DeclareClassProps>,
550
567
  ) => DetachedNode<DeclareClass> | null);
551
568
  type DeclaredPredicateCloneSignature = ((
552
569
  node: DeclaredPredicate,
553
- newProps: $Partial<DeclaredPredicateProps>,
570
+ newProps: Partial<DeclaredPredicateProps>,
554
571
  ) => DetachedNode<DeclaredPredicate>) &
555
572
  ((
556
573
  node: ?DeclaredPredicate,
557
- newProps: $Partial<DeclaredPredicateProps>,
574
+ newProps: Partial<DeclaredPredicateProps>,
558
575
  ) => DetachedNode<DeclaredPredicate> | null);
559
576
  type DeclareExportAllDeclarationCloneSignature = ((
560
577
  node: DeclareExportAllDeclaration,
561
- newProps: $Partial<DeclareExportAllDeclarationProps>,
578
+ newProps: Partial<DeclareExportAllDeclarationProps>,
562
579
  ) => DetachedNode<DeclareExportAllDeclaration>) &
563
580
  ((
564
581
  node: ?DeclareExportAllDeclaration,
565
- newProps: $Partial<DeclareExportAllDeclarationProps>,
582
+ newProps: Partial<DeclareExportAllDeclarationProps>,
566
583
  ) => DetachedNode<DeclareExportAllDeclaration> | null);
567
584
  type DeclareExportDeclarationCloneSignature = ((
568
585
  node: DeclareExportDeclaration,
569
- newProps: $Partial<DeclareExportDeclarationProps>,
586
+ newProps: Partial<DeclareExportDeclarationProps>,
570
587
  ) => DetachedNode<DeclareExportDeclaration>) &
571
588
  ((
572
589
  node: ?DeclareExportDeclaration,
573
- newProps: $Partial<DeclareExportDeclarationProps>,
590
+ newProps: Partial<DeclareExportDeclarationProps>,
574
591
  ) => DetachedNode<DeclareExportDeclaration> | null);
575
592
  type DeclareFunctionCloneSignature = ((
576
593
  node: DeclareFunction,
577
- newProps: $Partial<DeclareFunctionProps>,
594
+ newProps: Partial<DeclareFunctionProps>,
578
595
  ) => DetachedNode<DeclareFunction>) &
579
596
  ((
580
597
  node: ?DeclareFunction,
581
- newProps: $Partial<DeclareFunctionProps>,
598
+ newProps: Partial<DeclareFunctionProps>,
582
599
  ) => DetachedNode<DeclareFunction> | null);
583
600
  type DeclareInterfaceCloneSignature = ((
584
601
  node: DeclareInterface,
585
- newProps: $Partial<DeclareInterfaceProps>,
602
+ newProps: Partial<DeclareInterfaceProps>,
586
603
  ) => DetachedNode<DeclareInterface>) &
587
604
  ((
588
605
  node: ?DeclareInterface,
589
- newProps: $Partial<DeclareInterfaceProps>,
606
+ newProps: Partial<DeclareInterfaceProps>,
590
607
  ) => DetachedNode<DeclareInterface> | null);
591
608
  type DeclareModuleCloneSignature = ((
592
609
  node: DeclareModule,
593
- newProps: $Partial<DeclareModuleProps>,
610
+ newProps: Partial<DeclareModuleProps>,
594
611
  ) => DetachedNode<DeclareModule>) &
595
612
  ((
596
613
  node: ?DeclareModule,
597
- newProps: $Partial<DeclareModuleProps>,
614
+ newProps: Partial<DeclareModuleProps>,
598
615
  ) => DetachedNode<DeclareModule> | null);
599
616
  type DeclareModuleExportsCloneSignature = ((
600
617
  node: DeclareModuleExports,
601
- newProps: $Partial<DeclareModuleExportsProps>,
618
+ newProps: Partial<DeclareModuleExportsProps>,
602
619
  ) => DetachedNode<DeclareModuleExports>) &
603
620
  ((
604
621
  node: ?DeclareModuleExports,
605
- newProps: $Partial<DeclareModuleExportsProps>,
622
+ newProps: Partial<DeclareModuleExportsProps>,
606
623
  ) => DetachedNode<DeclareModuleExports> | null);
607
624
  type DeclareOpaqueTypeCloneSignature = ((
608
625
  node: DeclareOpaqueType,
609
- newProps: $Partial<DeclareOpaqueTypeProps>,
626
+ newProps: Partial<DeclareOpaqueTypeProps>,
610
627
  ) => DetachedNode<DeclareOpaqueType>) &
611
628
  ((
612
629
  node: ?DeclareOpaqueType,
613
- newProps: $Partial<DeclareOpaqueTypeProps>,
630
+ newProps: Partial<DeclareOpaqueTypeProps>,
614
631
  ) => DetachedNode<DeclareOpaqueType> | null);
615
632
  type DeclareTypeAliasCloneSignature = ((
616
633
  node: DeclareTypeAlias,
617
- newProps: $Partial<DeclareTypeAliasProps>,
634
+ newProps: Partial<DeclareTypeAliasProps>,
618
635
  ) => DetachedNode<DeclareTypeAlias>) &
619
636
  ((
620
637
  node: ?DeclareTypeAlias,
621
- newProps: $Partial<DeclareTypeAliasProps>,
638
+ newProps: Partial<DeclareTypeAliasProps>,
622
639
  ) => DetachedNode<DeclareTypeAlias> | null);
623
640
  type DeclareVariableCloneSignature = ((
624
641
  node: DeclareVariable,
625
- newProps: $Partial<DeclareVariableProps>,
642
+ newProps: Partial<DeclareVariableProps>,
626
643
  ) => DetachedNode<DeclareVariable>) &
627
644
  ((
628
645
  node: ?DeclareVariable,
629
- newProps: $Partial<DeclareVariableProps>,
646
+ newProps: Partial<DeclareVariableProps>,
630
647
  ) => DetachedNode<DeclareVariable> | null);
631
648
  type DoWhileStatementCloneSignature = ((
632
649
  node: DoWhileStatement,
633
- newProps: $Partial<DoWhileStatementProps>,
650
+ newProps: Partial<DoWhileStatementProps>,
634
651
  ) => DetachedNode<DoWhileStatement>) &
635
652
  ((
636
653
  node: ?DoWhileStatement,
637
- newProps: $Partial<DoWhileStatementProps>,
654
+ newProps: Partial<DoWhileStatementProps>,
638
655
  ) => DetachedNode<DoWhileStatement> | null);
639
656
  type EmptyStatementCloneSignature = ((
640
657
  node: EmptyStatement,
641
- newProps: $Partial<EmptyStatementProps>,
658
+ newProps: Partial<EmptyStatementProps>,
642
659
  ) => DetachedNode<EmptyStatement>) &
643
660
  ((
644
661
  node: ?EmptyStatement,
645
- newProps: $Partial<EmptyStatementProps>,
662
+ newProps: Partial<EmptyStatementProps>,
646
663
  ) => DetachedNode<EmptyStatement> | null);
647
664
  type EmptyTypeAnnotationCloneSignature = ((
648
665
  node: EmptyTypeAnnotation,
649
- newProps: $Partial<EmptyTypeAnnotationProps>,
666
+ newProps: Partial<EmptyTypeAnnotationProps>,
650
667
  ) => DetachedNode<EmptyTypeAnnotation>) &
651
668
  ((
652
669
  node: ?EmptyTypeAnnotation,
653
- newProps: $Partial<EmptyTypeAnnotationProps>,
670
+ newProps: Partial<EmptyTypeAnnotationProps>,
654
671
  ) => DetachedNode<EmptyTypeAnnotation> | null);
655
672
  type EnumBooleanBodyCloneSignature = ((
656
673
  node: EnumBooleanBody,
657
- newProps: $Partial<EnumBooleanBodyProps>,
674
+ newProps: Partial<EnumBooleanBodyProps>,
658
675
  ) => DetachedNode<EnumBooleanBody>) &
659
676
  ((
660
677
  node: ?EnumBooleanBody,
661
- newProps: $Partial<EnumBooleanBodyProps>,
678
+ newProps: Partial<EnumBooleanBodyProps>,
662
679
  ) => DetachedNode<EnumBooleanBody> | null);
663
680
  type EnumBooleanMemberCloneSignature = ((
664
681
  node: EnumBooleanMember,
665
- newProps: $Partial<EnumBooleanMemberProps>,
682
+ newProps: Partial<EnumBooleanMemberProps>,
666
683
  ) => DetachedNode<EnumBooleanMember>) &
667
684
  ((
668
685
  node: ?EnumBooleanMember,
669
- newProps: $Partial<EnumBooleanMemberProps>,
686
+ newProps: Partial<EnumBooleanMemberProps>,
670
687
  ) => DetachedNode<EnumBooleanMember> | null);
671
688
  type EnumDeclarationCloneSignature = ((
672
689
  node: EnumDeclaration,
673
- newProps: $Partial<EnumDeclarationProps>,
690
+ newProps: Partial<EnumDeclarationProps>,
674
691
  ) => DetachedNode<EnumDeclaration>) &
675
692
  ((
676
693
  node: ?EnumDeclaration,
677
- newProps: $Partial<EnumDeclarationProps>,
694
+ newProps: Partial<EnumDeclarationProps>,
678
695
  ) => DetachedNode<EnumDeclaration> | null);
679
696
  type EnumDefaultedMemberCloneSignature = ((
680
697
  node: EnumDefaultedMember,
681
- newProps: $Partial<EnumDefaultedMemberProps>,
698
+ newProps: Partial<EnumDefaultedMemberProps>,
682
699
  ) => DetachedNode<EnumDefaultedMember>) &
683
700
  ((
684
701
  node: ?EnumDefaultedMember,
685
- newProps: $Partial<EnumDefaultedMemberProps>,
702
+ newProps: Partial<EnumDefaultedMemberProps>,
686
703
  ) => DetachedNode<EnumDefaultedMember> | null);
687
704
  type EnumNumberBodyCloneSignature = ((
688
705
  node: EnumNumberBody,
689
- newProps: $Partial<EnumNumberBodyProps>,
706
+ newProps: Partial<EnumNumberBodyProps>,
690
707
  ) => DetachedNode<EnumNumberBody>) &
691
708
  ((
692
709
  node: ?EnumNumberBody,
693
- newProps: $Partial<EnumNumberBodyProps>,
710
+ newProps: Partial<EnumNumberBodyProps>,
694
711
  ) => DetachedNode<EnumNumberBody> | null);
695
712
  type EnumNumberMemberCloneSignature = ((
696
713
  node: EnumNumberMember,
697
- newProps: $Partial<EnumNumberMemberProps>,
714
+ newProps: Partial<EnumNumberMemberProps>,
698
715
  ) => DetachedNode<EnumNumberMember>) &
699
716
  ((
700
717
  node: ?EnumNumberMember,
701
- newProps: $Partial<EnumNumberMemberProps>,
718
+ newProps: Partial<EnumNumberMemberProps>,
702
719
  ) => DetachedNode<EnumNumberMember> | null);
703
720
  type EnumStringBodyCloneSignature = ((
704
721
  node: EnumStringBody,
705
- newProps: $Partial<EnumStringBodyProps>,
722
+ newProps: Partial<EnumStringBodyProps>,
706
723
  ) => DetachedNode<EnumStringBody>) &
707
724
  ((
708
725
  node: ?EnumStringBody,
709
- newProps: $Partial<EnumStringBodyProps>,
726
+ newProps: Partial<EnumStringBodyProps>,
710
727
  ) => DetachedNode<EnumStringBody> | null);
711
728
  type EnumStringMemberCloneSignature = ((
712
729
  node: EnumStringMember,
713
- newProps: $Partial<EnumStringMemberProps>,
730
+ newProps: Partial<EnumStringMemberProps>,
714
731
  ) => DetachedNode<EnumStringMember>) &
715
732
  ((
716
733
  node: ?EnumStringMember,
717
- newProps: $Partial<EnumStringMemberProps>,
734
+ newProps: Partial<EnumStringMemberProps>,
718
735
  ) => DetachedNode<EnumStringMember> | null);
719
736
  type EnumSymbolBodyCloneSignature = ((
720
737
  node: EnumSymbolBody,
721
- newProps: $Partial<EnumSymbolBodyProps>,
738
+ newProps: Partial<EnumSymbolBodyProps>,
722
739
  ) => DetachedNode<EnumSymbolBody>) &
723
740
  ((
724
741
  node: ?EnumSymbolBody,
725
- newProps: $Partial<EnumSymbolBodyProps>,
742
+ newProps: Partial<EnumSymbolBodyProps>,
726
743
  ) => DetachedNode<EnumSymbolBody> | null);
727
744
  type ExistsTypeAnnotationCloneSignature = ((
728
745
  node: ExistsTypeAnnotation,
729
- newProps: $Partial<ExistsTypeAnnotationProps>,
746
+ newProps: Partial<ExistsTypeAnnotationProps>,
730
747
  ) => DetachedNode<ExistsTypeAnnotation>) &
731
748
  ((
732
749
  node: ?ExistsTypeAnnotation,
733
- newProps: $Partial<ExistsTypeAnnotationProps>,
750
+ newProps: Partial<ExistsTypeAnnotationProps>,
734
751
  ) => DetachedNode<ExistsTypeAnnotation> | null);
735
752
  type ExportAllDeclarationCloneSignature = ((
736
753
  node: ExportAllDeclaration,
737
- newProps: $Partial<ExportAllDeclarationProps>,
754
+ newProps: Partial<ExportAllDeclarationProps>,
738
755
  ) => DetachedNode<ExportAllDeclaration>) &
739
756
  ((
740
757
  node: ?ExportAllDeclaration,
741
- newProps: $Partial<ExportAllDeclarationProps>,
758
+ newProps: Partial<ExportAllDeclarationProps>,
742
759
  ) => DetachedNode<ExportAllDeclaration> | null);
743
760
  type ExportDefaultDeclarationCloneSignature = ((
744
761
  node: ExportDefaultDeclaration,
745
- newProps: $Partial<ExportDefaultDeclarationProps>,
762
+ newProps: Partial<ExportDefaultDeclarationProps>,
746
763
  ) => DetachedNode<ExportDefaultDeclaration>) &
747
764
  ((
748
765
  node: ?ExportDefaultDeclaration,
749
- newProps: $Partial<ExportDefaultDeclarationProps>,
766
+ newProps: Partial<ExportDefaultDeclarationProps>,
750
767
  ) => DetachedNode<ExportDefaultDeclaration> | null);
751
768
  type ExportNamedDeclarationCloneSignature = ((
752
769
  node: ExportNamedDeclaration,
753
- newProps: $Partial<ExportNamedDeclarationProps>,
770
+ newProps: Partial<ExportNamedDeclarationProps>,
754
771
  ) => DetachedNode<ExportNamedDeclaration>) &
755
772
  ((
756
773
  node: ?ExportNamedDeclaration,
757
- newProps: $Partial<ExportNamedDeclarationProps>,
774
+ newProps: Partial<ExportNamedDeclarationProps>,
758
775
  ) => DetachedNode<ExportNamedDeclaration> | null);
759
776
  type ExportSpecifierCloneSignature = ((
760
777
  node: ExportSpecifier,
761
- newProps: $Partial<ExportSpecifierProps>,
778
+ newProps: Partial<ExportSpecifierProps>,
762
779
  ) => DetachedNode<ExportSpecifier>) &
763
780
  ((
764
781
  node: ?ExportSpecifier,
765
- newProps: $Partial<ExportSpecifierProps>,
782
+ newProps: Partial<ExportSpecifierProps>,
766
783
  ) => DetachedNode<ExportSpecifier> | null);
767
784
  type ExpressionStatementCloneSignature = ((
768
785
  node: ExpressionStatement,
769
- newProps: $Partial<ExpressionStatementProps>,
786
+ newProps: Partial<ExpressionStatementProps>,
770
787
  ) => DetachedNode<ExpressionStatement>) &
771
788
  ((
772
789
  node: ?ExpressionStatement,
773
- newProps: $Partial<ExpressionStatementProps>,
790
+ newProps: Partial<ExpressionStatementProps>,
774
791
  ) => DetachedNode<ExpressionStatement> | null);
775
792
  type ForInStatementCloneSignature = ((
776
793
  node: ForInStatement,
777
- newProps: $Partial<ForInStatementProps>,
794
+ newProps: Partial<ForInStatementProps>,
778
795
  ) => DetachedNode<ForInStatement>) &
779
796
  ((
780
797
  node: ?ForInStatement,
781
- newProps: $Partial<ForInStatementProps>,
798
+ newProps: Partial<ForInStatementProps>,
782
799
  ) => DetachedNode<ForInStatement> | null);
783
800
  type ForOfStatementCloneSignature = ((
784
801
  node: ForOfStatement,
785
- newProps: $Partial<ForOfStatementProps>,
802
+ newProps: Partial<ForOfStatementProps>,
786
803
  ) => DetachedNode<ForOfStatement>) &
787
804
  ((
788
805
  node: ?ForOfStatement,
789
- newProps: $Partial<ForOfStatementProps>,
806
+ newProps: Partial<ForOfStatementProps>,
790
807
  ) => DetachedNode<ForOfStatement> | null);
791
808
  type ForStatementCloneSignature = ((
792
809
  node: ForStatement,
793
- newProps: $Partial<ForStatementProps>,
810
+ newProps: Partial<ForStatementProps>,
794
811
  ) => DetachedNode<ForStatement>) &
795
812
  ((
796
813
  node: ?ForStatement,
797
- newProps: $Partial<ForStatementProps>,
814
+ newProps: Partial<ForStatementProps>,
798
815
  ) => DetachedNode<ForStatement> | null);
799
816
  type FunctionDeclarationCloneSignature = ((
800
817
  node: FunctionDeclaration,
801
- newProps: $Partial<FunctionDeclarationProps>,
818
+ newProps: Partial<FunctionDeclarationProps>,
802
819
  ) => DetachedNode<FunctionDeclaration>) &
803
820
  ((
804
821
  node: ?FunctionDeclaration,
805
- newProps: $Partial<FunctionDeclarationProps>,
822
+ newProps: Partial<FunctionDeclarationProps>,
806
823
  ) => DetachedNode<FunctionDeclaration> | null);
807
824
  type FunctionExpressionCloneSignature = ((
808
825
  node: FunctionExpression,
809
- newProps: $Partial<FunctionExpressionProps>,
826
+ newProps: Partial<FunctionExpressionProps>,
810
827
  ) => DetachedNode<FunctionExpression>) &
811
828
  ((
812
829
  node: ?FunctionExpression,
813
- newProps: $Partial<FunctionExpressionProps>,
830
+ newProps: Partial<FunctionExpressionProps>,
814
831
  ) => DetachedNode<FunctionExpression> | null);
815
832
  type FunctionTypeAnnotationCloneSignature = ((
816
833
  node: FunctionTypeAnnotation,
817
- newProps: $Partial<FunctionTypeAnnotationProps>,
834
+ newProps: Partial<FunctionTypeAnnotationProps>,
818
835
  ) => DetachedNode<FunctionTypeAnnotation>) &
819
836
  ((
820
837
  node: ?FunctionTypeAnnotation,
821
- newProps: $Partial<FunctionTypeAnnotationProps>,
838
+ newProps: Partial<FunctionTypeAnnotationProps>,
822
839
  ) => DetachedNode<FunctionTypeAnnotation> | null);
823
840
  type FunctionTypeParamCloneSignature = ((
824
841
  node: FunctionTypeParam,
825
- newProps: $Partial<FunctionTypeParamProps>,
842
+ newProps: Partial<FunctionTypeParamProps>,
826
843
  ) => DetachedNode<FunctionTypeParam>) &
827
844
  ((
828
845
  node: ?FunctionTypeParam,
829
- newProps: $Partial<FunctionTypeParamProps>,
846
+ newProps: Partial<FunctionTypeParamProps>,
830
847
  ) => DetachedNode<FunctionTypeParam> | null);
831
848
  type GenericTypeAnnotationCloneSignature = ((
832
849
  node: GenericTypeAnnotation,
833
- newProps: $Partial<GenericTypeAnnotationProps>,
850
+ newProps: Partial<GenericTypeAnnotationProps>,
834
851
  ) => DetachedNode<GenericTypeAnnotation>) &
835
852
  ((
836
853
  node: ?GenericTypeAnnotation,
837
- newProps: $Partial<GenericTypeAnnotationProps>,
854
+ newProps: Partial<GenericTypeAnnotationProps>,
838
855
  ) => DetachedNode<GenericTypeAnnotation> | null);
839
856
  type IdentifierCloneSignature = ((
840
857
  node: Identifier,
841
- newProps: $Partial<IdentifierProps>,
858
+ newProps: Partial<IdentifierProps>,
842
859
  ) => DetachedNode<Identifier>) &
843
860
  ((
844
861
  node: ?Identifier,
845
- newProps: $Partial<IdentifierProps>,
862
+ newProps: Partial<IdentifierProps>,
846
863
  ) => DetachedNode<Identifier> | null);
847
864
  type IfStatementCloneSignature = ((
848
865
  node: IfStatement,
849
- newProps: $Partial<IfStatementProps>,
866
+ newProps: Partial<IfStatementProps>,
850
867
  ) => DetachedNode<IfStatement>) &
851
868
  ((
852
869
  node: ?IfStatement,
853
- newProps: $Partial<IfStatementProps>,
870
+ newProps: Partial<IfStatementProps>,
854
871
  ) => DetachedNode<IfStatement> | null);
855
872
  type ImportAttributeCloneSignature = ((
856
873
  node: ImportAttribute,
857
- newProps: $Partial<ImportAttributeProps>,
874
+ newProps: Partial<ImportAttributeProps>,
858
875
  ) => DetachedNode<ImportAttribute>) &
859
876
  ((
860
877
  node: ?ImportAttribute,
861
- newProps: $Partial<ImportAttributeProps>,
878
+ newProps: Partial<ImportAttributeProps>,
862
879
  ) => DetachedNode<ImportAttribute> | null);
863
880
  type ImportDeclarationCloneSignature = ((
864
881
  node: ImportDeclaration,
865
- newProps: $Partial<ImportDeclarationProps>,
882
+ newProps: Partial<ImportDeclarationProps>,
866
883
  ) => DetachedNode<ImportDeclaration>) &
867
884
  ((
868
885
  node: ?ImportDeclaration,
869
- newProps: $Partial<ImportDeclarationProps>,
886
+ newProps: Partial<ImportDeclarationProps>,
870
887
  ) => DetachedNode<ImportDeclaration> | null);
871
888
  type ImportDefaultSpecifierCloneSignature = ((
872
889
  node: ImportDefaultSpecifier,
873
- newProps: $Partial<ImportDefaultSpecifierProps>,
890
+ newProps: Partial<ImportDefaultSpecifierProps>,
874
891
  ) => DetachedNode<ImportDefaultSpecifier>) &
875
892
  ((
876
893
  node: ?ImportDefaultSpecifier,
877
- newProps: $Partial<ImportDefaultSpecifierProps>,
894
+ newProps: Partial<ImportDefaultSpecifierProps>,
878
895
  ) => DetachedNode<ImportDefaultSpecifier> | null);
879
896
  type ImportExpressionCloneSignature = ((
880
897
  node: ImportExpression,
881
- newProps: $Partial<ImportExpressionProps>,
898
+ newProps: Partial<ImportExpressionProps>,
882
899
  ) => DetachedNode<ImportExpression>) &
883
900
  ((
884
901
  node: ?ImportExpression,
885
- newProps: $Partial<ImportExpressionProps>,
902
+ newProps: Partial<ImportExpressionProps>,
886
903
  ) => DetachedNode<ImportExpression> | null);
887
904
  type ImportNamespaceSpecifierCloneSignature = ((
888
905
  node: ImportNamespaceSpecifier,
889
- newProps: $Partial<ImportNamespaceSpecifierProps>,
906
+ newProps: Partial<ImportNamespaceSpecifierProps>,
890
907
  ) => DetachedNode<ImportNamespaceSpecifier>) &
891
908
  ((
892
909
  node: ?ImportNamespaceSpecifier,
893
- newProps: $Partial<ImportNamespaceSpecifierProps>,
910
+ newProps: Partial<ImportNamespaceSpecifierProps>,
894
911
  ) => DetachedNode<ImportNamespaceSpecifier> | null);
895
912
  type ImportSpecifierCloneSignature = ((
896
913
  node: ImportSpecifier,
897
- newProps: $Partial<ImportSpecifierProps>,
914
+ newProps: Partial<ImportSpecifierProps>,
898
915
  ) => DetachedNode<ImportSpecifier>) &
899
916
  ((
900
917
  node: ?ImportSpecifier,
901
- newProps: $Partial<ImportSpecifierProps>,
918
+ newProps: Partial<ImportSpecifierProps>,
902
919
  ) => DetachedNode<ImportSpecifier> | null);
903
920
  type IndexedAccessTypeCloneSignature = ((
904
921
  node: IndexedAccessType,
905
- newProps: $Partial<IndexedAccessTypeProps>,
922
+ newProps: Partial<IndexedAccessTypeProps>,
906
923
  ) => DetachedNode<IndexedAccessType>) &
907
924
  ((
908
925
  node: ?IndexedAccessType,
909
- newProps: $Partial<IndexedAccessTypeProps>,
926
+ newProps: Partial<IndexedAccessTypeProps>,
910
927
  ) => DetachedNode<IndexedAccessType> | null);
911
928
  type InferredPredicateCloneSignature = ((
912
929
  node: InferredPredicate,
913
- newProps: $Partial<InferredPredicateProps>,
930
+ newProps: Partial<InferredPredicateProps>,
914
931
  ) => DetachedNode<InferredPredicate>) &
915
932
  ((
916
933
  node: ?InferredPredicate,
917
- newProps: $Partial<InferredPredicateProps>,
934
+ newProps: Partial<InferredPredicateProps>,
918
935
  ) => DetachedNode<InferredPredicate> | null);
919
936
  type InterfaceDeclarationCloneSignature = ((
920
937
  node: InterfaceDeclaration,
921
- newProps: $Partial<InterfaceDeclarationProps>,
938
+ newProps: Partial<InterfaceDeclarationProps>,
922
939
  ) => DetachedNode<InterfaceDeclaration>) &
923
940
  ((
924
941
  node: ?InterfaceDeclaration,
925
- newProps: $Partial<InterfaceDeclarationProps>,
942
+ newProps: Partial<InterfaceDeclarationProps>,
926
943
  ) => DetachedNode<InterfaceDeclaration> | null);
927
944
  type InterfaceExtendsCloneSignature = ((
928
945
  node: InterfaceExtends,
929
- newProps: $Partial<InterfaceExtendsProps>,
946
+ newProps: Partial<InterfaceExtendsProps>,
930
947
  ) => DetachedNode<InterfaceExtends>) &
931
948
  ((
932
949
  node: ?InterfaceExtends,
933
- newProps: $Partial<InterfaceExtendsProps>,
950
+ newProps: Partial<InterfaceExtendsProps>,
934
951
  ) => DetachedNode<InterfaceExtends> | null);
935
952
  type InterfaceTypeAnnotationCloneSignature = ((
936
953
  node: InterfaceTypeAnnotation,
937
- newProps: $Partial<InterfaceTypeAnnotationProps>,
954
+ newProps: Partial<InterfaceTypeAnnotationProps>,
938
955
  ) => DetachedNode<InterfaceTypeAnnotation>) &
939
956
  ((
940
957
  node: ?InterfaceTypeAnnotation,
941
- newProps: $Partial<InterfaceTypeAnnotationProps>,
958
+ newProps: Partial<InterfaceTypeAnnotationProps>,
942
959
  ) => DetachedNode<InterfaceTypeAnnotation> | null);
943
960
  type IntersectionTypeAnnotationCloneSignature = ((
944
961
  node: IntersectionTypeAnnotation,
945
- newProps: $Partial<IntersectionTypeAnnotationProps>,
962
+ newProps: Partial<IntersectionTypeAnnotationProps>,
946
963
  ) => DetachedNode<IntersectionTypeAnnotation>) &
947
964
  ((
948
965
  node: ?IntersectionTypeAnnotation,
949
- newProps: $Partial<IntersectionTypeAnnotationProps>,
966
+ newProps: Partial<IntersectionTypeAnnotationProps>,
950
967
  ) => DetachedNode<IntersectionTypeAnnotation> | null);
951
968
  type JSXAttributeCloneSignature = ((
952
969
  node: JSXAttribute,
953
- newProps: $Partial<JSXAttributeProps>,
970
+ newProps: Partial<JSXAttributeProps>,
954
971
  ) => DetachedNode<JSXAttribute>) &
955
972
  ((
956
973
  node: ?JSXAttribute,
957
- newProps: $Partial<JSXAttributeProps>,
974
+ newProps: Partial<JSXAttributeProps>,
958
975
  ) => DetachedNode<JSXAttribute> | null);
959
976
  type JSXClosingElementCloneSignature = ((
960
977
  node: JSXClosingElement,
961
- newProps: $Partial<JSXClosingElementProps>,
978
+ newProps: Partial<JSXClosingElementProps>,
962
979
  ) => DetachedNode<JSXClosingElement>) &
963
980
  ((
964
981
  node: ?JSXClosingElement,
965
- newProps: $Partial<JSXClosingElementProps>,
982
+ newProps: Partial<JSXClosingElementProps>,
966
983
  ) => DetachedNode<JSXClosingElement> | null);
967
984
  type JSXClosingFragmentCloneSignature = ((
968
985
  node: JSXClosingFragment,
969
- newProps: $Partial<JSXClosingFragmentProps>,
986
+ newProps: Partial<JSXClosingFragmentProps>,
970
987
  ) => DetachedNode<JSXClosingFragment>) &
971
988
  ((
972
989
  node: ?JSXClosingFragment,
973
- newProps: $Partial<JSXClosingFragmentProps>,
990
+ newProps: Partial<JSXClosingFragmentProps>,
974
991
  ) => DetachedNode<JSXClosingFragment> | null);
975
992
  type JSXElementCloneSignature = ((
976
993
  node: JSXElement,
977
- newProps: $Partial<JSXElementProps>,
994
+ newProps: Partial<JSXElementProps>,
978
995
  ) => DetachedNode<JSXElement>) &
979
996
  ((
980
997
  node: ?JSXElement,
981
- newProps: $Partial<JSXElementProps>,
998
+ newProps: Partial<JSXElementProps>,
982
999
  ) => DetachedNode<JSXElement> | null);
983
1000
  type JSXEmptyExpressionCloneSignature = ((
984
1001
  node: JSXEmptyExpression,
985
- newProps: $Partial<JSXEmptyExpressionProps>,
1002
+ newProps: Partial<JSXEmptyExpressionProps>,
986
1003
  ) => DetachedNode<JSXEmptyExpression>) &
987
1004
  ((
988
1005
  node: ?JSXEmptyExpression,
989
- newProps: $Partial<JSXEmptyExpressionProps>,
1006
+ newProps: Partial<JSXEmptyExpressionProps>,
990
1007
  ) => DetachedNode<JSXEmptyExpression> | null);
991
1008
  type JSXExpressionContainerCloneSignature = ((
992
1009
  node: JSXExpressionContainer,
993
- newProps: $Partial<JSXExpressionContainerProps>,
1010
+ newProps: Partial<JSXExpressionContainerProps>,
994
1011
  ) => DetachedNode<JSXExpressionContainer>) &
995
1012
  ((
996
1013
  node: ?JSXExpressionContainer,
997
- newProps: $Partial<JSXExpressionContainerProps>,
1014
+ newProps: Partial<JSXExpressionContainerProps>,
998
1015
  ) => DetachedNode<JSXExpressionContainer> | null);
999
1016
  type JSXFragmentCloneSignature = ((
1000
1017
  node: JSXFragment,
1001
- newProps: $Partial<JSXFragmentProps>,
1018
+ newProps: Partial<JSXFragmentProps>,
1002
1019
  ) => DetachedNode<JSXFragment>) &
1003
1020
  ((
1004
1021
  node: ?JSXFragment,
1005
- newProps: $Partial<JSXFragmentProps>,
1022
+ newProps: Partial<JSXFragmentProps>,
1006
1023
  ) => DetachedNode<JSXFragment> | null);
1007
1024
  type JSXIdentifierCloneSignature = ((
1008
1025
  node: JSXIdentifier,
1009
- newProps: $Partial<JSXIdentifierProps>,
1026
+ newProps: Partial<JSXIdentifierProps>,
1010
1027
  ) => DetachedNode<JSXIdentifier>) &
1011
1028
  ((
1012
1029
  node: ?JSXIdentifier,
1013
- newProps: $Partial<JSXIdentifierProps>,
1030
+ newProps: Partial<JSXIdentifierProps>,
1014
1031
  ) => DetachedNode<JSXIdentifier> | null);
1015
1032
  type JSXMemberExpressionCloneSignature = ((
1016
1033
  node: JSXMemberExpression,
1017
- newProps: $Partial<JSXMemberExpressionProps>,
1034
+ newProps: Partial<JSXMemberExpressionProps>,
1018
1035
  ) => DetachedNode<JSXMemberExpression>) &
1019
1036
  ((
1020
1037
  node: ?JSXMemberExpression,
1021
- newProps: $Partial<JSXMemberExpressionProps>,
1038
+ newProps: Partial<JSXMemberExpressionProps>,
1022
1039
  ) => DetachedNode<JSXMemberExpression> | null);
1023
1040
  type JSXNamespacedNameCloneSignature = ((
1024
1041
  node: JSXNamespacedName,
1025
- newProps: $Partial<JSXNamespacedNameProps>,
1042
+ newProps: Partial<JSXNamespacedNameProps>,
1026
1043
  ) => DetachedNode<JSXNamespacedName>) &
1027
1044
  ((
1028
1045
  node: ?JSXNamespacedName,
1029
- newProps: $Partial<JSXNamespacedNameProps>,
1046
+ newProps: Partial<JSXNamespacedNameProps>,
1030
1047
  ) => DetachedNode<JSXNamespacedName> | null);
1031
1048
  type JSXOpeningElementCloneSignature = ((
1032
1049
  node: JSXOpeningElement,
1033
- newProps: $Partial<JSXOpeningElementProps>,
1050
+ newProps: Partial<JSXOpeningElementProps>,
1034
1051
  ) => DetachedNode<JSXOpeningElement>) &
1035
1052
  ((
1036
1053
  node: ?JSXOpeningElement,
1037
- newProps: $Partial<JSXOpeningElementProps>,
1054
+ newProps: Partial<JSXOpeningElementProps>,
1038
1055
  ) => DetachedNode<JSXOpeningElement> | null);
1039
1056
  type JSXOpeningFragmentCloneSignature = ((
1040
1057
  node: JSXOpeningFragment,
1041
- newProps: $Partial<JSXOpeningFragmentProps>,
1058
+ newProps: Partial<JSXOpeningFragmentProps>,
1042
1059
  ) => DetachedNode<JSXOpeningFragment>) &
1043
1060
  ((
1044
1061
  node: ?JSXOpeningFragment,
1045
- newProps: $Partial<JSXOpeningFragmentProps>,
1062
+ newProps: Partial<JSXOpeningFragmentProps>,
1046
1063
  ) => DetachedNode<JSXOpeningFragment> | null);
1047
1064
  type JSXSpreadAttributeCloneSignature = ((
1048
1065
  node: JSXSpreadAttribute,
1049
- newProps: $Partial<JSXSpreadAttributeProps>,
1066
+ newProps: Partial<JSXSpreadAttributeProps>,
1050
1067
  ) => DetachedNode<JSXSpreadAttribute>) &
1051
1068
  ((
1052
1069
  node: ?JSXSpreadAttribute,
1053
- newProps: $Partial<JSXSpreadAttributeProps>,
1070
+ newProps: Partial<JSXSpreadAttributeProps>,
1054
1071
  ) => DetachedNode<JSXSpreadAttribute> | null);
1055
1072
  type JSXSpreadChildCloneSignature = ((
1056
1073
  node: JSXSpreadChild,
1057
- newProps: $Partial<JSXSpreadChildProps>,
1074
+ newProps: Partial<JSXSpreadChildProps>,
1058
1075
  ) => DetachedNode<JSXSpreadChild>) &
1059
1076
  ((
1060
1077
  node: ?JSXSpreadChild,
1061
- newProps: $Partial<JSXSpreadChildProps>,
1078
+ newProps: Partial<JSXSpreadChildProps>,
1062
1079
  ) => DetachedNode<JSXSpreadChild> | null);
1063
1080
  type JSXTextCloneSignature = ((
1064
1081
  node: JSXText,
1065
- newProps: $Partial<JSXTextProps>,
1082
+ newProps: Partial<JSXTextProps>,
1066
1083
  ) => DetachedNode<JSXText>) &
1067
1084
  ((
1068
1085
  node: ?JSXText,
1069
- newProps: $Partial<JSXTextProps>,
1086
+ newProps: Partial<JSXTextProps>,
1070
1087
  ) => DetachedNode<JSXText> | null);
1071
1088
  type LabeledStatementCloneSignature = ((
1072
1089
  node: LabeledStatement,
1073
- newProps: $Partial<LabeledStatementProps>,
1090
+ newProps: Partial<LabeledStatementProps>,
1074
1091
  ) => DetachedNode<LabeledStatement>) &
1075
1092
  ((
1076
1093
  node: ?LabeledStatement,
1077
- newProps: $Partial<LabeledStatementProps>,
1094
+ newProps: Partial<LabeledStatementProps>,
1078
1095
  ) => DetachedNode<LabeledStatement> | null);
1079
1096
  type LogicalExpressionCloneSignature = ((
1080
1097
  node: LogicalExpression,
1081
- newProps: $Partial<LogicalExpressionProps>,
1098
+ newProps: Partial<LogicalExpressionProps>,
1082
1099
  ) => DetachedNode<LogicalExpression>) &
1083
1100
  ((
1084
1101
  node: ?LogicalExpression,
1085
- newProps: $Partial<LogicalExpressionProps>,
1102
+ newProps: Partial<LogicalExpressionProps>,
1086
1103
  ) => DetachedNode<LogicalExpression> | null);
1087
1104
  type MemberExpressionCloneSignature = ((
1088
1105
  node: MemberExpression,
1089
- newProps: $Partial<MemberExpressionProps>,
1106
+ newProps: Partial<MemberExpressionProps>,
1090
1107
  ) => DetachedNode<MemberExpression>) &
1091
1108
  ((
1092
1109
  node: ?MemberExpression,
1093
- newProps: $Partial<MemberExpressionProps>,
1110
+ newProps: Partial<MemberExpressionProps>,
1094
1111
  ) => DetachedNode<MemberExpression> | null);
1095
1112
  type MetaPropertyCloneSignature = ((
1096
1113
  node: MetaProperty,
1097
- newProps: $Partial<MetaPropertyProps>,
1114
+ newProps: Partial<MetaPropertyProps>,
1098
1115
  ) => DetachedNode<MetaProperty>) &
1099
1116
  ((
1100
1117
  node: ?MetaProperty,
1101
- newProps: $Partial<MetaPropertyProps>,
1118
+ newProps: Partial<MetaPropertyProps>,
1102
1119
  ) => DetachedNode<MetaProperty> | null);
1103
1120
  type MethodDefinitionCloneSignature = ((
1104
1121
  node: MethodDefinition,
1105
- newProps: $Partial<MethodDefinitionProps>,
1122
+ newProps: Partial<MethodDefinitionProps>,
1106
1123
  ) => DetachedNode<MethodDefinition>) &
1107
1124
  ((
1108
1125
  node: ?MethodDefinition,
1109
- newProps: $Partial<MethodDefinitionProps>,
1126
+ newProps: Partial<MethodDefinitionProps>,
1110
1127
  ) => DetachedNode<MethodDefinition> | null);
1111
1128
  type MixedTypeAnnotationCloneSignature = ((
1112
1129
  node: MixedTypeAnnotation,
1113
- newProps: $Partial<MixedTypeAnnotationProps>,
1130
+ newProps: Partial<MixedTypeAnnotationProps>,
1114
1131
  ) => DetachedNode<MixedTypeAnnotation>) &
1115
1132
  ((
1116
1133
  node: ?MixedTypeAnnotation,
1117
- newProps: $Partial<MixedTypeAnnotationProps>,
1134
+ newProps: Partial<MixedTypeAnnotationProps>,
1118
1135
  ) => DetachedNode<MixedTypeAnnotation> | null);
1119
1136
  type NewExpressionCloneSignature = ((
1120
1137
  node: NewExpression,
1121
- newProps: $Partial<NewExpressionProps>,
1138
+ newProps: Partial<NewExpressionProps>,
1122
1139
  ) => DetachedNode<NewExpression>) &
1123
1140
  ((
1124
1141
  node: ?NewExpression,
1125
- newProps: $Partial<NewExpressionProps>,
1142
+ newProps: Partial<NewExpressionProps>,
1126
1143
  ) => DetachedNode<NewExpression> | null);
1127
1144
  type NullableTypeAnnotationCloneSignature = ((
1128
1145
  node: NullableTypeAnnotation,
1129
- newProps: $Partial<NullableTypeAnnotationProps>,
1146
+ newProps: Partial<NullableTypeAnnotationProps>,
1130
1147
  ) => DetachedNode<NullableTypeAnnotation>) &
1131
1148
  ((
1132
1149
  node: ?NullableTypeAnnotation,
1133
- newProps: $Partial<NullableTypeAnnotationProps>,
1150
+ newProps: Partial<NullableTypeAnnotationProps>,
1134
1151
  ) => DetachedNode<NullableTypeAnnotation> | null);
1135
1152
  type NullLiteralCloneSignature = ((
1136
1153
  node: NullLiteral,
1137
- newProps: $Partial<NullLiteralProps>,
1154
+ newProps: Partial<NullLiteralProps>,
1138
1155
  ) => DetachedNode<NullLiteral>) &
1139
1156
  ((
1140
1157
  node: ?NullLiteral,
1141
- newProps: $Partial<NullLiteralProps>,
1158
+ newProps: Partial<NullLiteralProps>,
1142
1159
  ) => DetachedNode<NullLiteral> | null);
1143
1160
  type NullLiteralTypeAnnotationCloneSignature = ((
1144
1161
  node: NullLiteralTypeAnnotation,
1145
- newProps: $Partial<NullLiteralTypeAnnotationProps>,
1162
+ newProps: Partial<NullLiteralTypeAnnotationProps>,
1146
1163
  ) => DetachedNode<NullLiteralTypeAnnotation>) &
1147
1164
  ((
1148
1165
  node: ?NullLiteralTypeAnnotation,
1149
- newProps: $Partial<NullLiteralTypeAnnotationProps>,
1166
+ newProps: Partial<NullLiteralTypeAnnotationProps>,
1150
1167
  ) => DetachedNode<NullLiteralTypeAnnotation> | null);
1151
1168
  type NumberLiteralTypeAnnotationCloneSignature = ((
1152
1169
  node: NumberLiteralTypeAnnotation,
1153
- newProps: $Partial<NumberLiteralTypeAnnotationProps>,
1170
+ newProps: Partial<NumberLiteralTypeAnnotationProps>,
1154
1171
  ) => DetachedNode<NumberLiteralTypeAnnotation>) &
1155
1172
  ((
1156
1173
  node: ?NumberLiteralTypeAnnotation,
1157
- newProps: $Partial<NumberLiteralTypeAnnotationProps>,
1174
+ newProps: Partial<NumberLiteralTypeAnnotationProps>,
1158
1175
  ) => DetachedNode<NumberLiteralTypeAnnotation> | null);
1159
1176
  type NumberTypeAnnotationCloneSignature = ((
1160
1177
  node: NumberTypeAnnotation,
1161
- newProps: $Partial<NumberTypeAnnotationProps>,
1178
+ newProps: Partial<NumberTypeAnnotationProps>,
1162
1179
  ) => DetachedNode<NumberTypeAnnotation>) &
1163
1180
  ((
1164
1181
  node: ?NumberTypeAnnotation,
1165
- newProps: $Partial<NumberTypeAnnotationProps>,
1182
+ newProps: Partial<NumberTypeAnnotationProps>,
1166
1183
  ) => DetachedNode<NumberTypeAnnotation> | null);
1167
1184
  type NumericLiteralCloneSignature = ((
1168
1185
  node: NumericLiteral,
1169
- newProps: $Partial<NumericLiteralProps>,
1186
+ newProps: Partial<NumericLiteralProps>,
1170
1187
  ) => DetachedNode<NumericLiteral>) &
1171
1188
  ((
1172
1189
  node: ?NumericLiteral,
1173
- newProps: $Partial<NumericLiteralProps>,
1190
+ newProps: Partial<NumericLiteralProps>,
1174
1191
  ) => DetachedNode<NumericLiteral> | null);
1175
1192
  type ObjectExpressionCloneSignature = ((
1176
1193
  node: ObjectExpression,
1177
- newProps: $Partial<ObjectExpressionProps>,
1194
+ newProps: Partial<ObjectExpressionProps>,
1178
1195
  ) => DetachedNode<ObjectExpression>) &
1179
1196
  ((
1180
1197
  node: ?ObjectExpression,
1181
- newProps: $Partial<ObjectExpressionProps>,
1198
+ newProps: Partial<ObjectExpressionProps>,
1182
1199
  ) => DetachedNode<ObjectExpression> | null);
1183
1200
  type ObjectPatternCloneSignature = ((
1184
1201
  node: ObjectPattern,
1185
- newProps: $Partial<ObjectPatternProps>,
1202
+ newProps: Partial<ObjectPatternProps>,
1186
1203
  ) => DetachedNode<ObjectPattern>) &
1187
1204
  ((
1188
1205
  node: ?ObjectPattern,
1189
- newProps: $Partial<ObjectPatternProps>,
1206
+ newProps: Partial<ObjectPatternProps>,
1190
1207
  ) => DetachedNode<ObjectPattern> | null);
1191
1208
  type ObjectTypeAnnotationCloneSignature = ((
1192
1209
  node: ObjectTypeAnnotation,
1193
- newProps: $Partial<ObjectTypeAnnotationProps>,
1210
+ newProps: Partial<ObjectTypeAnnotationProps>,
1194
1211
  ) => DetachedNode<ObjectTypeAnnotation>) &
1195
1212
  ((
1196
1213
  node: ?ObjectTypeAnnotation,
1197
- newProps: $Partial<ObjectTypeAnnotationProps>,
1214
+ newProps: Partial<ObjectTypeAnnotationProps>,
1198
1215
  ) => DetachedNode<ObjectTypeAnnotation> | null);
1199
1216
  type ObjectTypeCallPropertyCloneSignature = ((
1200
1217
  node: ObjectTypeCallProperty,
1201
- newProps: $Partial<ObjectTypeCallPropertyProps>,
1218
+ newProps: Partial<ObjectTypeCallPropertyProps>,
1202
1219
  ) => DetachedNode<ObjectTypeCallProperty>) &
1203
1220
  ((
1204
1221
  node: ?ObjectTypeCallProperty,
1205
- newProps: $Partial<ObjectTypeCallPropertyProps>,
1222
+ newProps: Partial<ObjectTypeCallPropertyProps>,
1206
1223
  ) => DetachedNode<ObjectTypeCallProperty> | null);
1207
1224
  type ObjectTypeIndexerCloneSignature = ((
1208
1225
  node: ObjectTypeIndexer,
1209
- newProps: $Partial<ObjectTypeIndexerProps>,
1226
+ newProps: Partial<ObjectTypeIndexerProps>,
1210
1227
  ) => DetachedNode<ObjectTypeIndexer>) &
1211
1228
  ((
1212
1229
  node: ?ObjectTypeIndexer,
1213
- newProps: $Partial<ObjectTypeIndexerProps>,
1230
+ newProps: Partial<ObjectTypeIndexerProps>,
1214
1231
  ) => DetachedNode<ObjectTypeIndexer> | null);
1215
1232
  type ObjectTypeInternalSlotCloneSignature = ((
1216
1233
  node: ObjectTypeInternalSlot,
1217
- newProps: $Partial<ObjectTypeInternalSlotProps>,
1234
+ newProps: Partial<ObjectTypeInternalSlotProps>,
1218
1235
  ) => DetachedNode<ObjectTypeInternalSlot>) &
1219
1236
  ((
1220
1237
  node: ?ObjectTypeInternalSlot,
1221
- newProps: $Partial<ObjectTypeInternalSlotProps>,
1238
+ newProps: Partial<ObjectTypeInternalSlotProps>,
1222
1239
  ) => DetachedNode<ObjectTypeInternalSlot> | null);
1223
1240
  type ObjectTypePropertyCloneSignature = ((
1224
1241
  node: ObjectTypeProperty,
1225
- newProps: $Partial<ObjectTypePropertyProps>,
1242
+ newProps: Partial<ObjectTypePropertyProps>,
1226
1243
  ) => DetachedNode<ObjectTypeProperty>) &
1227
1244
  ((
1228
1245
  node: ?ObjectTypeProperty,
1229
- newProps: $Partial<ObjectTypePropertyProps>,
1246
+ newProps: Partial<ObjectTypePropertyProps>,
1230
1247
  ) => DetachedNode<ObjectTypeProperty> | null);
1231
1248
  type ObjectTypeSpreadPropertyCloneSignature = ((
1232
1249
  node: ObjectTypeSpreadProperty,
1233
- newProps: $Partial<ObjectTypeSpreadPropertyProps>,
1250
+ newProps: Partial<ObjectTypeSpreadPropertyProps>,
1234
1251
  ) => DetachedNode<ObjectTypeSpreadProperty>) &
1235
1252
  ((
1236
1253
  node: ?ObjectTypeSpreadProperty,
1237
- newProps: $Partial<ObjectTypeSpreadPropertyProps>,
1254
+ newProps: Partial<ObjectTypeSpreadPropertyProps>,
1238
1255
  ) => DetachedNode<ObjectTypeSpreadProperty> | null);
1239
1256
  type OpaqueTypeCloneSignature = ((
1240
1257
  node: OpaqueType,
1241
- newProps: $Partial<OpaqueTypeProps>,
1258
+ newProps: Partial<OpaqueTypeProps>,
1242
1259
  ) => DetachedNode<OpaqueType>) &
1243
1260
  ((
1244
1261
  node: ?OpaqueType,
1245
- newProps: $Partial<OpaqueTypeProps>,
1262
+ newProps: Partial<OpaqueTypeProps>,
1246
1263
  ) => DetachedNode<OpaqueType> | null);
1247
1264
  type OptionalIndexedAccessTypeCloneSignature = ((
1248
1265
  node: OptionalIndexedAccessType,
1249
- newProps: $Partial<OptionalIndexedAccessTypeProps>,
1266
+ newProps: Partial<OptionalIndexedAccessTypeProps>,
1250
1267
  ) => DetachedNode<OptionalIndexedAccessType>) &
1251
1268
  ((
1252
1269
  node: ?OptionalIndexedAccessType,
1253
- newProps: $Partial<OptionalIndexedAccessTypeProps>,
1270
+ newProps: Partial<OptionalIndexedAccessTypeProps>,
1254
1271
  ) => DetachedNode<OptionalIndexedAccessType> | null);
1255
1272
  type PrivateIdentifierCloneSignature = ((
1256
1273
  node: PrivateIdentifier,
1257
- newProps: $Partial<PrivateIdentifierProps>,
1274
+ newProps: Partial<PrivateIdentifierProps>,
1258
1275
  ) => DetachedNode<PrivateIdentifier>) &
1259
1276
  ((
1260
1277
  node: ?PrivateIdentifier,
1261
- newProps: $Partial<PrivateIdentifierProps>,
1278
+ newProps: Partial<PrivateIdentifierProps>,
1262
1279
  ) => DetachedNode<PrivateIdentifier> | null);
1263
1280
  type PropertyCloneSignature = ((
1264
1281
  node: Property,
1265
- newProps: $Partial<PropertyProps>,
1282
+ newProps: Partial<PropertyProps>,
1266
1283
  ) => DetachedNode<Property>) &
1267
1284
  ((
1268
1285
  node: ?Property,
1269
- newProps: $Partial<PropertyProps>,
1286
+ newProps: Partial<PropertyProps>,
1270
1287
  ) => DetachedNode<Property> | null);
1271
1288
  type PropertyDefinitionCloneSignature = ((
1272
1289
  node: PropertyDefinition,
1273
- newProps: $Partial<PropertyDefinitionProps>,
1290
+ newProps: Partial<PropertyDefinitionProps>,
1274
1291
  ) => DetachedNode<PropertyDefinition>) &
1275
1292
  ((
1276
1293
  node: ?PropertyDefinition,
1277
- newProps: $Partial<PropertyDefinitionProps>,
1294
+ newProps: Partial<PropertyDefinitionProps>,
1278
1295
  ) => DetachedNode<PropertyDefinition> | null);
1279
1296
  type QualifiedTypeIdentifierCloneSignature = ((
1280
1297
  node: QualifiedTypeIdentifier,
1281
- newProps: $Partial<QualifiedTypeIdentifierProps>,
1298
+ newProps: Partial<QualifiedTypeIdentifierProps>,
1282
1299
  ) => DetachedNode<QualifiedTypeIdentifier>) &
1283
1300
  ((
1284
1301
  node: ?QualifiedTypeIdentifier,
1285
- newProps: $Partial<QualifiedTypeIdentifierProps>,
1302
+ newProps: Partial<QualifiedTypeIdentifierProps>,
1286
1303
  ) => DetachedNode<QualifiedTypeIdentifier> | null);
1287
1304
  type RegExpLiteralCloneSignature = ((
1288
1305
  node: RegExpLiteral,
1289
- newProps: $Partial<RegExpLiteralProps>,
1306
+ newProps: Partial<RegExpLiteralProps>,
1290
1307
  ) => DetachedNode<RegExpLiteral>) &
1291
1308
  ((
1292
1309
  node: ?RegExpLiteral,
1293
- newProps: $Partial<RegExpLiteralProps>,
1310
+ newProps: Partial<RegExpLiteralProps>,
1294
1311
  ) => DetachedNode<RegExpLiteral> | null);
1295
1312
  type RestElementCloneSignature = ((
1296
1313
  node: RestElement,
1297
- newProps: $Partial<RestElementProps>,
1314
+ newProps: Partial<RestElementProps>,
1298
1315
  ) => DetachedNode<RestElement>) &
1299
1316
  ((
1300
1317
  node: ?RestElement,
1301
- newProps: $Partial<RestElementProps>,
1318
+ newProps: Partial<RestElementProps>,
1302
1319
  ) => DetachedNode<RestElement> | null);
1303
1320
  type ReturnStatementCloneSignature = ((
1304
1321
  node: ReturnStatement,
1305
- newProps: $Partial<ReturnStatementProps>,
1322
+ newProps: Partial<ReturnStatementProps>,
1306
1323
  ) => DetachedNode<ReturnStatement>) &
1307
1324
  ((
1308
1325
  node: ?ReturnStatement,
1309
- newProps: $Partial<ReturnStatementProps>,
1326
+ newProps: Partial<ReturnStatementProps>,
1310
1327
  ) => DetachedNode<ReturnStatement> | null);
1311
1328
  type SequenceExpressionCloneSignature = ((
1312
1329
  node: SequenceExpression,
1313
- newProps: $Partial<SequenceExpressionProps>,
1330
+ newProps: Partial<SequenceExpressionProps>,
1314
1331
  ) => DetachedNode<SequenceExpression>) &
1315
1332
  ((
1316
1333
  node: ?SequenceExpression,
1317
- newProps: $Partial<SequenceExpressionProps>,
1334
+ newProps: Partial<SequenceExpressionProps>,
1318
1335
  ) => DetachedNode<SequenceExpression> | null);
1319
1336
  type SpreadElementCloneSignature = ((
1320
1337
  node: SpreadElement,
1321
- newProps: $Partial<SpreadElementProps>,
1338
+ newProps: Partial<SpreadElementProps>,
1322
1339
  ) => DetachedNode<SpreadElement>) &
1323
1340
  ((
1324
1341
  node: ?SpreadElement,
1325
- newProps: $Partial<SpreadElementProps>,
1342
+ newProps: Partial<SpreadElementProps>,
1326
1343
  ) => DetachedNode<SpreadElement> | null);
1327
1344
  type StringLiteralCloneSignature = ((
1328
1345
  node: StringLiteral,
1329
- newProps: $Partial<StringLiteralProps>,
1346
+ newProps: Partial<StringLiteralProps>,
1330
1347
  ) => DetachedNode<StringLiteral>) &
1331
1348
  ((
1332
1349
  node: ?StringLiteral,
1333
- newProps: $Partial<StringLiteralProps>,
1350
+ newProps: Partial<StringLiteralProps>,
1334
1351
  ) => DetachedNode<StringLiteral> | null);
1335
1352
  type StringLiteralTypeAnnotationCloneSignature = ((
1336
1353
  node: StringLiteralTypeAnnotation,
1337
- newProps: $Partial<StringLiteralTypeAnnotationProps>,
1354
+ newProps: Partial<StringLiteralTypeAnnotationProps>,
1338
1355
  ) => DetachedNode<StringLiteralTypeAnnotation>) &
1339
1356
  ((
1340
1357
  node: ?StringLiteralTypeAnnotation,
1341
- newProps: $Partial<StringLiteralTypeAnnotationProps>,
1358
+ newProps: Partial<StringLiteralTypeAnnotationProps>,
1342
1359
  ) => DetachedNode<StringLiteralTypeAnnotation> | null);
1343
1360
  type StringTypeAnnotationCloneSignature = ((
1344
1361
  node: StringTypeAnnotation,
1345
- newProps: $Partial<StringTypeAnnotationProps>,
1362
+ newProps: Partial<StringTypeAnnotationProps>,
1346
1363
  ) => DetachedNode<StringTypeAnnotation>) &
1347
1364
  ((
1348
1365
  node: ?StringTypeAnnotation,
1349
- newProps: $Partial<StringTypeAnnotationProps>,
1366
+ newProps: Partial<StringTypeAnnotationProps>,
1350
1367
  ) => DetachedNode<StringTypeAnnotation> | null);
1351
1368
  type SuperCloneSignature = ((
1352
1369
  node: Super,
1353
- newProps: $Partial<SuperProps>,
1370
+ newProps: Partial<SuperProps>,
1354
1371
  ) => DetachedNode<Super>) &
1355
- ((
1356
- node: ?Super,
1357
- newProps: $Partial<SuperProps>,
1358
- ) => DetachedNode<Super> | null);
1372
+ ((node: ?Super, newProps: Partial<SuperProps>) => DetachedNode<Super> | null);
1359
1373
  type SwitchCaseCloneSignature = ((
1360
1374
  node: SwitchCase,
1361
- newProps: $Partial<SwitchCaseProps>,
1375
+ newProps: Partial<SwitchCaseProps>,
1362
1376
  ) => DetachedNode<SwitchCase>) &
1363
1377
  ((
1364
1378
  node: ?SwitchCase,
1365
- newProps: $Partial<SwitchCaseProps>,
1379
+ newProps: Partial<SwitchCaseProps>,
1366
1380
  ) => DetachedNode<SwitchCase> | null);
1367
1381
  type SwitchStatementCloneSignature = ((
1368
1382
  node: SwitchStatement,
1369
- newProps: $Partial<SwitchStatementProps>,
1383
+ newProps: Partial<SwitchStatementProps>,
1370
1384
  ) => DetachedNode<SwitchStatement>) &
1371
1385
  ((
1372
1386
  node: ?SwitchStatement,
1373
- newProps: $Partial<SwitchStatementProps>,
1387
+ newProps: Partial<SwitchStatementProps>,
1374
1388
  ) => DetachedNode<SwitchStatement> | null);
1375
1389
  type SymbolTypeAnnotationCloneSignature = ((
1376
1390
  node: SymbolTypeAnnotation,
1377
- newProps: $Partial<SymbolTypeAnnotationProps>,
1391
+ newProps: Partial<SymbolTypeAnnotationProps>,
1378
1392
  ) => DetachedNode<SymbolTypeAnnotation>) &
1379
1393
  ((
1380
1394
  node: ?SymbolTypeAnnotation,
1381
- newProps: $Partial<SymbolTypeAnnotationProps>,
1395
+ newProps: Partial<SymbolTypeAnnotationProps>,
1382
1396
  ) => DetachedNode<SymbolTypeAnnotation> | null);
1383
1397
  type TaggedTemplateExpressionCloneSignature = ((
1384
1398
  node: TaggedTemplateExpression,
1385
- newProps: $Partial<TaggedTemplateExpressionProps>,
1399
+ newProps: Partial<TaggedTemplateExpressionProps>,
1386
1400
  ) => DetachedNode<TaggedTemplateExpression>) &
1387
1401
  ((
1388
1402
  node: ?TaggedTemplateExpression,
1389
- newProps: $Partial<TaggedTemplateExpressionProps>,
1403
+ newProps: Partial<TaggedTemplateExpressionProps>,
1390
1404
  ) => DetachedNode<TaggedTemplateExpression> | null);
1391
1405
  type TemplateElementCloneSignature = ((
1392
1406
  node: TemplateElement,
1393
- newProps: $Partial<TemplateElementProps>,
1407
+ newProps: Partial<TemplateElementProps>,
1394
1408
  ) => DetachedNode<TemplateElement>) &
1395
1409
  ((
1396
1410
  node: ?TemplateElement,
1397
- newProps: $Partial<TemplateElementProps>,
1411
+ newProps: Partial<TemplateElementProps>,
1398
1412
  ) => DetachedNode<TemplateElement> | null);
1399
1413
  type TemplateLiteralCloneSignature = ((
1400
1414
  node: TemplateLiteral,
1401
- newProps: $Partial<TemplateLiteralProps>,
1415
+ newProps: Partial<TemplateLiteralProps>,
1402
1416
  ) => DetachedNode<TemplateLiteral>) &
1403
1417
  ((
1404
1418
  node: ?TemplateLiteral,
1405
- newProps: $Partial<TemplateLiteralProps>,
1419
+ newProps: Partial<TemplateLiteralProps>,
1406
1420
  ) => DetachedNode<TemplateLiteral> | null);
1407
1421
  type ThisExpressionCloneSignature = ((
1408
1422
  node: ThisExpression,
1409
- newProps: $Partial<ThisExpressionProps>,
1423
+ newProps: Partial<ThisExpressionProps>,
1410
1424
  ) => DetachedNode<ThisExpression>) &
1411
1425
  ((
1412
1426
  node: ?ThisExpression,
1413
- newProps: $Partial<ThisExpressionProps>,
1427
+ newProps: Partial<ThisExpressionProps>,
1414
1428
  ) => DetachedNode<ThisExpression> | null);
1415
1429
  type ThisTypeAnnotationCloneSignature = ((
1416
1430
  node: ThisTypeAnnotation,
1417
- newProps: $Partial<ThisTypeAnnotationProps>,
1431
+ newProps: Partial<ThisTypeAnnotationProps>,
1418
1432
  ) => DetachedNode<ThisTypeAnnotation>) &
1419
1433
  ((
1420
1434
  node: ?ThisTypeAnnotation,
1421
- newProps: $Partial<ThisTypeAnnotationProps>,
1435
+ newProps: Partial<ThisTypeAnnotationProps>,
1422
1436
  ) => DetachedNode<ThisTypeAnnotation> | null);
1423
1437
  type ThrowStatementCloneSignature = ((
1424
1438
  node: ThrowStatement,
1425
- newProps: $Partial<ThrowStatementProps>,
1439
+ newProps: Partial<ThrowStatementProps>,
1426
1440
  ) => DetachedNode<ThrowStatement>) &
1427
1441
  ((
1428
1442
  node: ?ThrowStatement,
1429
- newProps: $Partial<ThrowStatementProps>,
1443
+ newProps: Partial<ThrowStatementProps>,
1430
1444
  ) => DetachedNode<ThrowStatement> | null);
1431
1445
  type TryStatementCloneSignature = ((
1432
1446
  node: TryStatement,
1433
- newProps: $Partial<TryStatementProps>,
1447
+ newProps: Partial<TryStatementProps>,
1434
1448
  ) => DetachedNode<TryStatement>) &
1435
1449
  ((
1436
1450
  node: ?TryStatement,
1437
- newProps: $Partial<TryStatementProps>,
1451
+ newProps: Partial<TryStatementProps>,
1438
1452
  ) => DetachedNode<TryStatement> | null);
1439
1453
  type TupleTypeAnnotationCloneSignature = ((
1440
1454
  node: TupleTypeAnnotation,
1441
- newProps: $Partial<TupleTypeAnnotationProps>,
1455
+ newProps: Partial<TupleTypeAnnotationProps>,
1442
1456
  ) => DetachedNode<TupleTypeAnnotation>) &
1443
1457
  ((
1444
1458
  node: ?TupleTypeAnnotation,
1445
- newProps: $Partial<TupleTypeAnnotationProps>,
1459
+ newProps: Partial<TupleTypeAnnotationProps>,
1446
1460
  ) => DetachedNode<TupleTypeAnnotation> | null);
1447
1461
  type TypeAliasCloneSignature = ((
1448
1462
  node: TypeAlias,
1449
- newProps: $Partial<TypeAliasProps>,
1463
+ newProps: Partial<TypeAliasProps>,
1450
1464
  ) => DetachedNode<TypeAlias>) &
1451
1465
  ((
1452
1466
  node: ?TypeAlias,
1453
- newProps: $Partial<TypeAliasProps>,
1467
+ newProps: Partial<TypeAliasProps>,
1454
1468
  ) => DetachedNode<TypeAlias> | null);
1455
1469
  type TypeAnnotationCloneSignature = ((
1456
1470
  node: TypeAnnotation,
1457
- newProps: $Partial<TypeAnnotationProps>,
1471
+ newProps: Partial<TypeAnnotationProps>,
1458
1472
  ) => DetachedNode<TypeAnnotation>) &
1459
1473
  ((
1460
1474
  node: ?TypeAnnotation,
1461
- newProps: $Partial<TypeAnnotationProps>,
1475
+ newProps: Partial<TypeAnnotationProps>,
1462
1476
  ) => DetachedNode<TypeAnnotation> | null);
1463
1477
  type TypeCastExpressionCloneSignature = ((
1464
1478
  node: TypeCastExpression,
1465
- newProps: $Partial<TypeCastExpressionProps>,
1479
+ newProps: Partial<TypeCastExpressionProps>,
1466
1480
  ) => DetachedNode<TypeCastExpression>) &
1467
1481
  ((
1468
1482
  node: ?TypeCastExpression,
1469
- newProps: $Partial<TypeCastExpressionProps>,
1483
+ newProps: Partial<TypeCastExpressionProps>,
1470
1484
  ) => DetachedNode<TypeCastExpression> | null);
1471
1485
  type TypeofTypeAnnotationCloneSignature = ((
1472
1486
  node: TypeofTypeAnnotation,
1473
- newProps: $Partial<TypeofTypeAnnotationProps>,
1487
+ newProps: Partial<TypeofTypeAnnotationProps>,
1474
1488
  ) => DetachedNode<TypeofTypeAnnotation>) &
1475
1489
  ((
1476
1490
  node: ?TypeofTypeAnnotation,
1477
- newProps: $Partial<TypeofTypeAnnotationProps>,
1491
+ newProps: Partial<TypeofTypeAnnotationProps>,
1478
1492
  ) => DetachedNode<TypeofTypeAnnotation> | null);
1479
1493
  type TypeParameterCloneSignature = ((
1480
1494
  node: TypeParameter,
1481
- newProps: $Partial<TypeParameterProps>,
1495
+ newProps: Partial<TypeParameterProps>,
1482
1496
  ) => DetachedNode<TypeParameter>) &
1483
1497
  ((
1484
1498
  node: ?TypeParameter,
1485
- newProps: $Partial<TypeParameterProps>,
1499
+ newProps: Partial<TypeParameterProps>,
1486
1500
  ) => DetachedNode<TypeParameter> | null);
1487
1501
  type TypeParameterDeclarationCloneSignature = ((
1488
1502
  node: TypeParameterDeclaration,
1489
- newProps: $Partial<TypeParameterDeclarationProps>,
1503
+ newProps: Partial<TypeParameterDeclarationProps>,
1490
1504
  ) => DetachedNode<TypeParameterDeclaration>) &
1491
1505
  ((
1492
1506
  node: ?TypeParameterDeclaration,
1493
- newProps: $Partial<TypeParameterDeclarationProps>,
1507
+ newProps: Partial<TypeParameterDeclarationProps>,
1494
1508
  ) => DetachedNode<TypeParameterDeclaration> | null);
1495
1509
  type TypeParameterInstantiationCloneSignature = ((
1496
1510
  node: TypeParameterInstantiation,
1497
- newProps: $Partial<TypeParameterInstantiationProps>,
1511
+ newProps: Partial<TypeParameterInstantiationProps>,
1498
1512
  ) => DetachedNode<TypeParameterInstantiation>) &
1499
1513
  ((
1500
1514
  node: ?TypeParameterInstantiation,
1501
- newProps: $Partial<TypeParameterInstantiationProps>,
1515
+ newProps: Partial<TypeParameterInstantiationProps>,
1502
1516
  ) => DetachedNode<TypeParameterInstantiation> | null);
1503
1517
  type UnaryExpressionCloneSignature = ((
1504
1518
  node: UnaryExpression,
1505
- newProps: $Partial<UnaryExpressionProps>,
1519
+ newProps: Partial<UnaryExpressionProps>,
1506
1520
  ) => DetachedNode<UnaryExpression>) &
1507
1521
  ((
1508
1522
  node: ?UnaryExpression,
1509
- newProps: $Partial<UnaryExpressionProps>,
1523
+ newProps: Partial<UnaryExpressionProps>,
1510
1524
  ) => DetachedNode<UnaryExpression> | null);
1511
1525
  type UnionTypeAnnotationCloneSignature = ((
1512
1526
  node: UnionTypeAnnotation,
1513
- newProps: $Partial<UnionTypeAnnotationProps>,
1527
+ newProps: Partial<UnionTypeAnnotationProps>,
1514
1528
  ) => DetachedNode<UnionTypeAnnotation>) &
1515
1529
  ((
1516
1530
  node: ?UnionTypeAnnotation,
1517
- newProps: $Partial<UnionTypeAnnotationProps>,
1531
+ newProps: Partial<UnionTypeAnnotationProps>,
1518
1532
  ) => DetachedNode<UnionTypeAnnotation> | null);
1519
1533
  type UpdateExpressionCloneSignature = ((
1520
1534
  node: UpdateExpression,
1521
- newProps: $Partial<UpdateExpressionProps>,
1535
+ newProps: Partial<UpdateExpressionProps>,
1522
1536
  ) => DetachedNode<UpdateExpression>) &
1523
1537
  ((
1524
1538
  node: ?UpdateExpression,
1525
- newProps: $Partial<UpdateExpressionProps>,
1539
+ newProps: Partial<UpdateExpressionProps>,
1526
1540
  ) => DetachedNode<UpdateExpression> | null);
1527
1541
  type VariableDeclarationCloneSignature = ((
1528
1542
  node: VariableDeclaration,
1529
- newProps: $Partial<VariableDeclarationProps>,
1543
+ newProps: Partial<VariableDeclarationProps>,
1530
1544
  ) => DetachedNode<VariableDeclaration>) &
1531
1545
  ((
1532
1546
  node: ?VariableDeclaration,
1533
- newProps: $Partial<VariableDeclarationProps>,
1547
+ newProps: Partial<VariableDeclarationProps>,
1534
1548
  ) => DetachedNode<VariableDeclaration> | null);
1535
1549
  type VariableDeclaratorCloneSignature = ((
1536
1550
  node: VariableDeclarator,
1537
- newProps: $Partial<VariableDeclaratorProps>,
1551
+ newProps: Partial<VariableDeclaratorProps>,
1538
1552
  ) => DetachedNode<VariableDeclarator>) &
1539
1553
  ((
1540
1554
  node: ?VariableDeclarator,
1541
- newProps: $Partial<VariableDeclaratorProps>,
1555
+ newProps: Partial<VariableDeclaratorProps>,
1542
1556
  ) => DetachedNode<VariableDeclarator> | null);
1543
1557
  type VarianceCloneSignature = ((
1544
1558
  node: Variance,
1545
- newProps: $Partial<VarianceProps>,
1559
+ newProps: Partial<VarianceProps>,
1546
1560
  ) => DetachedNode<Variance>) &
1547
1561
  ((
1548
1562
  node: ?Variance,
1549
- newProps: $Partial<VarianceProps>,
1563
+ newProps: Partial<VarianceProps>,
1550
1564
  ) => DetachedNode<Variance> | null);
1551
1565
  type VoidTypeAnnotationCloneSignature = ((
1552
1566
  node: VoidTypeAnnotation,
1553
- newProps: $Partial<VoidTypeAnnotationProps>,
1567
+ newProps: Partial<VoidTypeAnnotationProps>,
1554
1568
  ) => DetachedNode<VoidTypeAnnotation>) &
1555
1569
  ((
1556
1570
  node: ?VoidTypeAnnotation,
1557
- newProps: $Partial<VoidTypeAnnotationProps>,
1571
+ newProps: Partial<VoidTypeAnnotationProps>,
1558
1572
  ) => DetachedNode<VoidTypeAnnotation> | null);
1559
1573
  type WhileStatementCloneSignature = ((
1560
1574
  node: WhileStatement,
1561
- newProps: $Partial<WhileStatementProps>,
1575
+ newProps: Partial<WhileStatementProps>,
1562
1576
  ) => DetachedNode<WhileStatement>) &
1563
1577
  ((
1564
1578
  node: ?WhileStatement,
1565
- newProps: $Partial<WhileStatementProps>,
1579
+ newProps: Partial<WhileStatementProps>,
1566
1580
  ) => DetachedNode<WhileStatement> | null);
1567
1581
  type WithStatementCloneSignature = ((
1568
1582
  node: WithStatement,
1569
- newProps: $Partial<WithStatementProps>,
1583
+ newProps: Partial<WithStatementProps>,
1570
1584
  ) => DetachedNode<WithStatement>) &
1571
1585
  ((
1572
1586
  node: ?WithStatement,
1573
- newProps: $Partial<WithStatementProps>,
1587
+ newProps: Partial<WithStatementProps>,
1574
1588
  ) => DetachedNode<WithStatement> | null);
1575
1589
  type YieldExpressionCloneSignature = ((
1576
1590
  node: YieldExpression,
1577
- newProps: $Partial<YieldExpressionProps>,
1591
+ newProps: Partial<YieldExpressionProps>,
1578
1592
  ) => DetachedNode<YieldExpression>) &
1579
1593
  ((
1580
1594
  node: ?YieldExpression,
1581
- newProps: $Partial<YieldExpressionProps>,
1595
+ newProps: Partial<YieldExpressionProps>,
1582
1596
  ) => DetachedNode<YieldExpression> | null);
1583
1597
  export type TransformCloneSignatures = AnyTypeAnnotationCloneSignature &
1584
1598
  ArrayExpressionCloneSignature &
@@ -1590,6 +1604,7 @@ export type TransformCloneSignatures = AnyTypeAnnotationCloneSignature &
1590
1604
  AwaitExpressionCloneSignature &
1591
1605
  BigIntLiteralCloneSignature &
1592
1606
  BigIntLiteralTypeAnnotationCloneSignature &
1607
+ BigIntTypeAnnotationCloneSignature &
1593
1608
  BinaryExpressionCloneSignature &
1594
1609
  BlockStatementCloneSignature &
1595
1610
  BooleanLiteralCloneSignature &