@teambit/remove 1.0.188 → 1.0.190

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.
@@ -0,0 +1,3568 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ClassSchema",
18
+ "location": {
19
+ "filePath": "remove.main.runtime.ts",
20
+ "line": 36,
21
+ "character": 1
22
+ },
23
+ "signature": "class RemoveMain",
24
+ "name": "RemoveMain",
25
+ "members": [
26
+ {
27
+ "__schema": "ConstructorSchema",
28
+ "location": {
29
+ "filePath": "remove.main.runtime.ts",
30
+ "line": 37,
31
+ "character": 3
32
+ },
33
+ "signature": "constructor RemoveMain(workspace: Workspace, logger: Logger, importer: ImporterMain, depResolver: DependencyResolverMain): RemoveMain",
34
+ "name": "constructor",
35
+ "params": [
36
+ {
37
+ "__schema": "ParameterSchema",
38
+ "location": {
39
+ "filePath": "remove.main.runtime.ts",
40
+ "line": 38,
41
+ "character": 5
42
+ },
43
+ "name": "workspace",
44
+ "type": {
45
+ "__schema": "TypeRefSchema",
46
+ "location": {
47
+ "filePath": "remove.main.runtime.ts",
48
+ "line": 38,
49
+ "character": 24
50
+ },
51
+ "name": "Workspace",
52
+ "componentId": {
53
+ "scope": "teambit.workspace",
54
+ "name": "workspace"
55
+ }
56
+ },
57
+ "isOptional": false,
58
+ "isSpread": false
59
+ },
60
+ {
61
+ "__schema": "ParameterSchema",
62
+ "location": {
63
+ "filePath": "remove.main.runtime.ts",
64
+ "line": 39,
65
+ "character": 5
66
+ },
67
+ "name": "logger",
68
+ "type": {
69
+ "__schema": "TypeRefSchema",
70
+ "location": {
71
+ "filePath": "remove.main.runtime.ts",
72
+ "line": 39,
73
+ "character": 20
74
+ },
75
+ "name": "Logger",
76
+ "componentId": {
77
+ "scope": "teambit.harmony",
78
+ "name": "logger"
79
+ }
80
+ },
81
+ "isOptional": false,
82
+ "isSpread": false
83
+ },
84
+ {
85
+ "__schema": "ParameterSchema",
86
+ "location": {
87
+ "filePath": "remove.main.runtime.ts",
88
+ "line": 40,
89
+ "character": 5
90
+ },
91
+ "name": "importer",
92
+ "type": {
93
+ "__schema": "TypeRefSchema",
94
+ "location": {
95
+ "filePath": "remove.main.runtime.ts",
96
+ "line": 40,
97
+ "character": 23
98
+ },
99
+ "name": "ImporterMain",
100
+ "componentId": {
101
+ "scope": "teambit.scope",
102
+ "name": "importer"
103
+ }
104
+ },
105
+ "isOptional": false,
106
+ "isSpread": false
107
+ },
108
+ {
109
+ "__schema": "ParameterSchema",
110
+ "location": {
111
+ "filePath": "remove.main.runtime.ts",
112
+ "line": 41,
113
+ "character": 5
114
+ },
115
+ "name": "depResolver",
116
+ "type": {
117
+ "__schema": "TypeRefSchema",
118
+ "location": {
119
+ "filePath": "remove.main.runtime.ts",
120
+ "line": 41,
121
+ "character": 26
122
+ },
123
+ "name": "DependencyResolverMain",
124
+ "componentId": {
125
+ "scope": "teambit.dependencies",
126
+ "name": "dependency-resolver"
127
+ }
128
+ },
129
+ "isOptional": false,
130
+ "isSpread": false
131
+ }
132
+ ],
133
+ "returnType": {
134
+ "__schema": "ThisTypeSchema",
135
+ "location": {
136
+ "filePath": "remove.main.runtime.ts",
137
+ "line": 36,
138
+ "character": 1
139
+ },
140
+ "name": "RemoveMain"
141
+ },
142
+ "modifiers": []
143
+ },
144
+ {
145
+ "__schema": "FunctionLikeSchema",
146
+ "location": {
147
+ "filePath": "remove.main.runtime.ts",
148
+ "line": 44,
149
+ "character": 3
150
+ },
151
+ "signature": "(method) RemoveMain.remove({ componentsPattern, force, remote, track, deleteFiles, }: {\n componentsPattern: string;\n force?: boolean;\n remote?: boolean;\n track?: boolean;\n deleteFiles?: boolean;\n}): Promise<RemoveComponentsResult>",
152
+ "name": "remove",
153
+ "params": [
154
+ {
155
+ "__schema": "ParameterSchema",
156
+ "location": {
157
+ "filePath": "remove.main.runtime.ts",
158
+ "line": 44,
159
+ "character": 16
160
+ },
161
+ "name": "{ componentsPattern, force = false, remote = false, track = false, deleteFiles = true }",
162
+ "type": {
163
+ "__schema": "TypeLiteralSchema",
164
+ "location": {
165
+ "filePath": "remove.main.runtime.ts",
166
+ "line": 50,
167
+ "character": 6
168
+ },
169
+ "members": [
170
+ {
171
+ "__schema": "VariableLikeSchema",
172
+ "location": {
173
+ "filePath": "remove.main.runtime.ts",
174
+ "line": 51,
175
+ "character": 5
176
+ },
177
+ "signature": "(property) componentsPattern: string",
178
+ "name": "componentsPattern",
179
+ "type": {
180
+ "__schema": "KeywordTypeSchema",
181
+ "location": {
182
+ "filePath": "remove.main.runtime.ts",
183
+ "line": 51,
184
+ "character": 24
185
+ },
186
+ "name": "string"
187
+ },
188
+ "isOptional": false
189
+ },
190
+ {
191
+ "__schema": "VariableLikeSchema",
192
+ "location": {
193
+ "filePath": "remove.main.runtime.ts",
194
+ "line": 52,
195
+ "character": 5
196
+ },
197
+ "signature": "(property) force?: boolean | undefined",
198
+ "name": "force",
199
+ "type": {
200
+ "__schema": "KeywordTypeSchema",
201
+ "location": {
202
+ "filePath": "remove.main.runtime.ts",
203
+ "line": 52,
204
+ "character": 13
205
+ },
206
+ "name": "boolean"
207
+ },
208
+ "isOptional": true
209
+ },
210
+ {
211
+ "__schema": "VariableLikeSchema",
212
+ "location": {
213
+ "filePath": "remove.main.runtime.ts",
214
+ "line": 53,
215
+ "character": 5
216
+ },
217
+ "signature": "(property) remote?: boolean | undefined",
218
+ "name": "remote",
219
+ "type": {
220
+ "__schema": "KeywordTypeSchema",
221
+ "location": {
222
+ "filePath": "remove.main.runtime.ts",
223
+ "line": 53,
224
+ "character": 14
225
+ },
226
+ "name": "boolean"
227
+ },
228
+ "isOptional": true
229
+ },
230
+ {
231
+ "__schema": "VariableLikeSchema",
232
+ "location": {
233
+ "filePath": "remove.main.runtime.ts",
234
+ "line": 54,
235
+ "character": 5
236
+ },
237
+ "signature": "(property) track?: boolean | undefined",
238
+ "name": "track",
239
+ "type": {
240
+ "__schema": "KeywordTypeSchema",
241
+ "location": {
242
+ "filePath": "remove.main.runtime.ts",
243
+ "line": 54,
244
+ "character": 13
245
+ },
246
+ "name": "boolean"
247
+ },
248
+ "isOptional": true
249
+ },
250
+ {
251
+ "__schema": "VariableLikeSchema",
252
+ "location": {
253
+ "filePath": "remove.main.runtime.ts",
254
+ "line": 55,
255
+ "character": 5
256
+ },
257
+ "signature": "(property) deleteFiles?: boolean | undefined",
258
+ "name": "deleteFiles",
259
+ "type": {
260
+ "__schema": "KeywordTypeSchema",
261
+ "location": {
262
+ "filePath": "remove.main.runtime.ts",
263
+ "line": 55,
264
+ "character": 19
265
+ },
266
+ "name": "boolean"
267
+ },
268
+ "isOptional": true
269
+ }
270
+ ]
271
+ },
272
+ "isOptional": false,
273
+ "objectBindingNodes": [
274
+ {
275
+ "__schema": "VariableLikeSchema",
276
+ "location": {
277
+ "filePath": "remove.main.runtime.ts",
278
+ "line": 51,
279
+ "character": 5
280
+ },
281
+ "signature": "(property) componentsPattern: string",
282
+ "name": "componentsPattern",
283
+ "type": {
284
+ "__schema": "KeywordTypeSchema",
285
+ "location": {
286
+ "filePath": "remove.main.runtime.ts",
287
+ "line": 51,
288
+ "character": 24
289
+ },
290
+ "name": "string"
291
+ },
292
+ "isOptional": false
293
+ },
294
+ {
295
+ "__schema": "VariableLikeSchema",
296
+ "location": {
297
+ "filePath": "remove.main.runtime.ts",
298
+ "line": 52,
299
+ "character": 5
300
+ },
301
+ "signature": "(property) force?: boolean | undefined",
302
+ "name": "force",
303
+ "type": {
304
+ "__schema": "KeywordTypeSchema",
305
+ "location": {
306
+ "filePath": "remove.main.runtime.ts",
307
+ "line": 52,
308
+ "character": 13
309
+ },
310
+ "name": "boolean"
311
+ },
312
+ "isOptional": true
313
+ },
314
+ {
315
+ "__schema": "VariableLikeSchema",
316
+ "location": {
317
+ "filePath": "remove.main.runtime.ts",
318
+ "line": 53,
319
+ "character": 5
320
+ },
321
+ "signature": "(property) remote?: boolean | undefined",
322
+ "name": "remote",
323
+ "type": {
324
+ "__schema": "KeywordTypeSchema",
325
+ "location": {
326
+ "filePath": "remove.main.runtime.ts",
327
+ "line": 53,
328
+ "character": 14
329
+ },
330
+ "name": "boolean"
331
+ },
332
+ "isOptional": true
333
+ },
334
+ {
335
+ "__schema": "VariableLikeSchema",
336
+ "location": {
337
+ "filePath": "remove.main.runtime.ts",
338
+ "line": 54,
339
+ "character": 5
340
+ },
341
+ "signature": "(property) track?: boolean | undefined",
342
+ "name": "track",
343
+ "type": {
344
+ "__schema": "KeywordTypeSchema",
345
+ "location": {
346
+ "filePath": "remove.main.runtime.ts",
347
+ "line": 54,
348
+ "character": 13
349
+ },
350
+ "name": "boolean"
351
+ },
352
+ "isOptional": true
353
+ },
354
+ {
355
+ "__schema": "VariableLikeSchema",
356
+ "location": {
357
+ "filePath": "remove.main.runtime.ts",
358
+ "line": 55,
359
+ "character": 5
360
+ },
361
+ "signature": "(property) deleteFiles?: boolean | undefined",
362
+ "name": "deleteFiles",
363
+ "type": {
364
+ "__schema": "KeywordTypeSchema",
365
+ "location": {
366
+ "filePath": "remove.main.runtime.ts",
367
+ "line": 55,
368
+ "character": 19
369
+ },
370
+ "name": "boolean"
371
+ },
372
+ "isOptional": true
373
+ }
374
+ ],
375
+ "isSpread": false
376
+ }
377
+ ],
378
+ "returnType": {
379
+ "__schema": "TypeRefSchema",
380
+ "location": {
381
+ "filePath": "remove.main.runtime.ts",
382
+ "line": 56,
383
+ "character": 7
384
+ },
385
+ "name": "Promise",
386
+ "typeArgs": [
387
+ {
388
+ "__schema": "TypeRefSchema",
389
+ "location": {
390
+ "filePath": "remove.main.runtime.ts",
391
+ "line": 56,
392
+ "character": 15
393
+ },
394
+ "name": "RemoveComponentsResult",
395
+ "internalFilePath": "remove-components.ts"
396
+ }
397
+ ]
398
+ },
399
+ "modifiers": [
400
+ "async"
401
+ ]
402
+ },
403
+ {
404
+ "__schema": "FunctionLikeSchema",
405
+ "location": {
406
+ "filePath": "remove.main.runtime.ts",
407
+ "line": 78,
408
+ "character": 3
409
+ },
410
+ "doc": {
411
+ "__schema": "DocSchema",
412
+ "location": {
413
+ "filePath": "remove.main.runtime.ts",
414
+ "line": 75,
415
+ "character": 3
416
+ },
417
+ "raw": "/**\n * remove components from the workspace.\n */",
418
+ "comment": "remove components from the workspace."
419
+ },
420
+ "signature": "(method) RemoveMain.removeLocallyByIds(ids: ComponentID[], { force, reasonForRemoval }?: {\n force?: boolean;\n reasonForRemoval?: string;\n}): Promise<RemoveComponentsResult>",
421
+ "name": "removeLocallyByIds",
422
+ "params": [
423
+ {
424
+ "__schema": "ParameterSchema",
425
+ "location": {
426
+ "filePath": "remove.main.runtime.ts",
427
+ "line": 79,
428
+ "character": 5
429
+ },
430
+ "name": "ids",
431
+ "type": {
432
+ "__schema": "TypeArraySchema",
433
+ "location": {
434
+ "filePath": "remove.main.runtime.ts",
435
+ "line": 79,
436
+ "character": 10
437
+ },
438
+ "type": {
439
+ "__schema": "TypeRefSchema",
440
+ "location": {
441
+ "filePath": "remove.main.runtime.ts",
442
+ "line": 79,
443
+ "character": 10
444
+ },
445
+ "name": "ComponentID",
446
+ "componentId": {
447
+ "scope": "teambit.component",
448
+ "name": "component-id",
449
+ "version": "1.2.0"
450
+ }
451
+ }
452
+ },
453
+ "isOptional": false,
454
+ "isSpread": false
455
+ },
456
+ {
457
+ "__schema": "ParameterSchema",
458
+ "location": {
459
+ "filePath": "remove.main.runtime.ts",
460
+ "line": 80,
461
+ "character": 5
462
+ },
463
+ "name": "{ force = false, reasonForRemoval }",
464
+ "type": {
465
+ "__schema": "TypeLiteralSchema",
466
+ "location": {
467
+ "filePath": "remove.main.runtime.ts",
468
+ "line": 80,
469
+ "character": 42
470
+ },
471
+ "members": [
472
+ {
473
+ "__schema": "VariableLikeSchema",
474
+ "location": {
475
+ "filePath": "remove.main.runtime.ts",
476
+ "line": 80,
477
+ "character": 44
478
+ },
479
+ "signature": "(property) force?: boolean | undefined",
480
+ "name": "force",
481
+ "type": {
482
+ "__schema": "KeywordTypeSchema",
483
+ "location": {
484
+ "filePath": "remove.main.runtime.ts",
485
+ "line": 80,
486
+ "character": 52
487
+ },
488
+ "name": "boolean"
489
+ },
490
+ "isOptional": true
491
+ },
492
+ {
493
+ "__schema": "VariableLikeSchema",
494
+ "location": {
495
+ "filePath": "remove.main.runtime.ts",
496
+ "line": 80,
497
+ "character": 61
498
+ },
499
+ "signature": "(property) reasonForRemoval?: string | undefined",
500
+ "name": "reasonForRemoval",
501
+ "type": {
502
+ "__schema": "KeywordTypeSchema",
503
+ "location": {
504
+ "filePath": "remove.main.runtime.ts",
505
+ "line": 80,
506
+ "character": 80
507
+ },
508
+ "name": "string"
509
+ },
510
+ "isOptional": true
511
+ }
512
+ ]
513
+ },
514
+ "isOptional": true,
515
+ "defaultValue": "{}",
516
+ "objectBindingNodes": [
517
+ {
518
+ "__schema": "VariableLikeSchema",
519
+ "location": {
520
+ "filePath": "remove.main.runtime.ts",
521
+ "line": 80,
522
+ "character": 44
523
+ },
524
+ "signature": "(property) force?: boolean | undefined",
525
+ "name": "force",
526
+ "type": {
527
+ "__schema": "KeywordTypeSchema",
528
+ "location": {
529
+ "filePath": "remove.main.runtime.ts",
530
+ "line": 80,
531
+ "character": 52
532
+ },
533
+ "name": "boolean"
534
+ },
535
+ "isOptional": true
536
+ },
537
+ {
538
+ "__schema": "VariableLikeSchema",
539
+ "location": {
540
+ "filePath": "remove.main.runtime.ts",
541
+ "line": 80,
542
+ "character": 61
543
+ },
544
+ "signature": "(property) reasonForRemoval?: string | undefined",
545
+ "name": "reasonForRemoval",
546
+ "type": {
547
+ "__schema": "KeywordTypeSchema",
548
+ "location": {
549
+ "filePath": "remove.main.runtime.ts",
550
+ "line": 80,
551
+ "character": 80
552
+ },
553
+ "name": "string"
554
+ },
555
+ "isOptional": true
556
+ }
557
+ ],
558
+ "isSpread": false
559
+ }
560
+ ],
561
+ "returnType": {
562
+ "__schema": "InferenceTypeSchema",
563
+ "location": {
564
+ "filePath": "remove.main.runtime.ts",
565
+ "line": 78,
566
+ "character": 3
567
+ },
568
+ "type": "Promise<RemoveComponentsResult>"
569
+ },
570
+ "modifiers": [
571
+ "async"
572
+ ]
573
+ },
574
+ {
575
+ "__schema": "FunctionLikeSchema",
576
+ "location": {
577
+ "filePath": "remove.main.runtime.ts",
578
+ "line": 96,
579
+ "character": 3
580
+ },
581
+ "signature": "(method) RemoveMain.markRemoveComps(componentIds: ComponentID[], shouldUpdateMain?: boolean): Promise<ComponentID[]>",
582
+ "name": "markRemoveComps",
583
+ "params": [
584
+ {
585
+ "__schema": "ParameterSchema",
586
+ "location": {
587
+ "filePath": "remove.main.runtime.ts",
588
+ "line": 96,
589
+ "character": 25
590
+ },
591
+ "name": "componentIds",
592
+ "type": {
593
+ "__schema": "TypeArraySchema",
594
+ "location": {
595
+ "filePath": "remove.main.runtime.ts",
596
+ "line": 96,
597
+ "character": 39
598
+ },
599
+ "type": {
600
+ "__schema": "TypeRefSchema",
601
+ "location": {
602
+ "filePath": "remove.main.runtime.ts",
603
+ "line": 96,
604
+ "character": 39
605
+ },
606
+ "name": "ComponentID",
607
+ "componentId": {
608
+ "scope": "teambit.component",
609
+ "name": "component-id",
610
+ "version": "1.2.0"
611
+ }
612
+ }
613
+ },
614
+ "isOptional": false,
615
+ "isSpread": false
616
+ },
617
+ {
618
+ "__schema": "ParameterSchema",
619
+ "location": {
620
+ "filePath": "remove.main.runtime.ts",
621
+ "line": 96,
622
+ "character": 54
623
+ },
624
+ "name": "shouldUpdateMain",
625
+ "type": {
626
+ "__schema": "InferenceTypeSchema",
627
+ "location": {
628
+ "filePath": "remove.main.runtime.ts",
629
+ "line": 96,
630
+ "character": 54
631
+ },
632
+ "type": "boolean"
633
+ },
634
+ "isOptional": true,
635
+ "defaultValue": "false",
636
+ "isSpread": false
637
+ }
638
+ ],
639
+ "returnType": {
640
+ "__schema": "InferenceTypeSchema",
641
+ "location": {
642
+ "filePath": "remove.main.runtime.ts",
643
+ "line": 96,
644
+ "character": 3
645
+ },
646
+ "type": "Promise<ComponentID[]>"
647
+ },
648
+ "modifiers": [
649
+ "async"
650
+ ]
651
+ },
652
+ {
653
+ "__schema": "FunctionLikeSchema",
654
+ "location": {
655
+ "filePath": "remove.main.runtime.ts",
656
+ "line": 114,
657
+ "character": 3
658
+ },
659
+ "signature": "(method) RemoveMain.deleteComps(componentsPattern: string, opts?: {\n updateMain?: boolean;\n}): Promise<ComponentID[]>",
660
+ "name": "deleteComps",
661
+ "params": [
662
+ {
663
+ "__schema": "ParameterSchema",
664
+ "location": {
665
+ "filePath": "remove.main.runtime.ts",
666
+ "line": 114,
667
+ "character": 21
668
+ },
669
+ "name": "componentsPattern",
670
+ "type": {
671
+ "__schema": "KeywordTypeSchema",
672
+ "location": {
673
+ "filePath": "remove.main.runtime.ts",
674
+ "line": 114,
675
+ "character": 40
676
+ },
677
+ "name": "string"
678
+ },
679
+ "isOptional": false,
680
+ "isSpread": false
681
+ },
682
+ {
683
+ "__schema": "ParameterSchema",
684
+ "location": {
685
+ "filePath": "remove.main.runtime.ts",
686
+ "line": 114,
687
+ "character": 48
688
+ },
689
+ "name": "opts",
690
+ "type": {
691
+ "__schema": "TypeLiteralSchema",
692
+ "location": {
693
+ "filePath": "remove.main.runtime.ts",
694
+ "line": 114,
695
+ "character": 54
696
+ },
697
+ "members": [
698
+ {
699
+ "__schema": "VariableLikeSchema",
700
+ "location": {
701
+ "filePath": "remove.main.runtime.ts",
702
+ "line": 114,
703
+ "character": 56
704
+ },
705
+ "signature": "(property) updateMain?: boolean | undefined",
706
+ "name": "updateMain",
707
+ "type": {
708
+ "__schema": "KeywordTypeSchema",
709
+ "location": {
710
+ "filePath": "remove.main.runtime.ts",
711
+ "line": 114,
712
+ "character": 69
713
+ },
714
+ "name": "boolean"
715
+ },
716
+ "isOptional": true
717
+ }
718
+ ]
719
+ },
720
+ "isOptional": true,
721
+ "defaultValue": "{}",
722
+ "isSpread": false
723
+ }
724
+ ],
725
+ "returnType": {
726
+ "__schema": "TypeRefSchema",
727
+ "location": {
728
+ "filePath": "remove.main.runtime.ts",
729
+ "line": 114,
730
+ "character": 86
731
+ },
732
+ "name": "Promise",
733
+ "typeArgs": [
734
+ {
735
+ "__schema": "TypeArraySchema",
736
+ "location": {
737
+ "filePath": "remove.main.runtime.ts",
738
+ "line": 114,
739
+ "character": 94
740
+ },
741
+ "type": {
742
+ "__schema": "TypeRefSchema",
743
+ "location": {
744
+ "filePath": "remove.main.runtime.ts",
745
+ "line": 114,
746
+ "character": 94
747
+ },
748
+ "name": "ComponentID",
749
+ "componentId": {
750
+ "scope": "teambit.component",
751
+ "name": "component-id",
752
+ "version": "1.2.0"
753
+ }
754
+ }
755
+ }
756
+ ]
757
+ },
758
+ "modifiers": [
759
+ "async"
760
+ ]
761
+ },
762
+ {
763
+ "__schema": "FunctionLikeSchema",
764
+ "location": {
765
+ "filePath": "remove.main.runtime.ts",
766
+ "line": 148,
767
+ "character": 3
768
+ },
769
+ "doc": {
770
+ "__schema": "DocSchema",
771
+ "location": {
772
+ "filePath": "remove.main.runtime.ts",
773
+ "line": 136,
774
+ "character": 3
775
+ },
776
+ "raw": "/**\n * recover a soft-removed component.\n * there are 4 different scenarios.\n * 1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n * 1.a. the component still exists in the local scope. no need to import. write it from there.\n * 1.b. the component doesn't exist in the local scope. import it.\n * 2. soft-removed and then snapped. It's not in .bitmap now.\n * 3. soft-removed, snapped, exported. it's not in .bitmap now.\n * 4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n * 5. workspace is empty. the soft-removed component is on the remote.\n * returns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from.\n */",
777
+ "comment": "recover a soft-removed component.\nthere are 4 different scenarios.\n1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n1.a. the component still exists in the local scope. no need to import. write it from there.\n1.b. the component doesn't exist in the local scope. import it.\n2. soft-removed and then snapped. It's not in .bitmap now.\n3. soft-removed, snapped, exported. it's not in .bitmap now.\n4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n5. workspace is empty. the soft-removed component is on the remote.\nreturns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from."
778
+ },
779
+ "signature": "(method) RemoveMain.recover(compIdStr: string, options: RecoverOptions): Promise<boolean>",
780
+ "name": "recover",
781
+ "params": [
782
+ {
783
+ "__schema": "ParameterSchema",
784
+ "location": {
785
+ "filePath": "remove.main.runtime.ts",
786
+ "line": 148,
787
+ "character": 17
788
+ },
789
+ "name": "compIdStr",
790
+ "type": {
791
+ "__schema": "KeywordTypeSchema",
792
+ "location": {
793
+ "filePath": "remove.main.runtime.ts",
794
+ "line": 148,
795
+ "character": 28
796
+ },
797
+ "name": "string"
798
+ },
799
+ "isOptional": false,
800
+ "isSpread": false
801
+ },
802
+ {
803
+ "__schema": "ParameterSchema",
804
+ "location": {
805
+ "filePath": "remove.main.runtime.ts",
806
+ "line": 148,
807
+ "character": 36
808
+ },
809
+ "name": "options",
810
+ "type": {
811
+ "__schema": "TypeRefSchema",
812
+ "location": {
813
+ "filePath": "remove.main.runtime.ts",
814
+ "line": 148,
815
+ "character": 45
816
+ },
817
+ "name": "RecoverOptions",
818
+ "internalFilePath": "recover-cmd.ts"
819
+ },
820
+ "isOptional": false,
821
+ "isSpread": false
822
+ }
823
+ ],
824
+ "returnType": {
825
+ "__schema": "TypeRefSchema",
826
+ "location": {
827
+ "filePath": "remove.main.runtime.ts",
828
+ "line": 148,
829
+ "character": 62
830
+ },
831
+ "name": "Promise",
832
+ "typeArgs": [
833
+ {
834
+ "__schema": "KeywordTypeSchema",
835
+ "location": {
836
+ "filePath": "remove.main.runtime.ts",
837
+ "line": 148,
838
+ "character": 70
839
+ },
840
+ "name": "boolean"
841
+ }
842
+ ]
843
+ },
844
+ "modifiers": [
845
+ "async"
846
+ ]
847
+ },
848
+ {
849
+ "__schema": "FunctionLikeSchema",
850
+ "location": {
851
+ "filePath": "remove.main.runtime.ts",
852
+ "line": 233,
853
+ "character": 3
854
+ },
855
+ "signature": "(method) RemoveMain.getRemoveInfo(component: Component): RemoveInfo",
856
+ "name": "getRemoveInfo",
857
+ "params": [
858
+ {
859
+ "__schema": "ParameterSchema",
860
+ "location": {
861
+ "filePath": "remove.main.runtime.ts",
862
+ "line": 233,
863
+ "character": 17
864
+ },
865
+ "name": "component",
866
+ "type": {
867
+ "__schema": "TypeRefSchema",
868
+ "location": {
869
+ "filePath": "remove.main.runtime.ts",
870
+ "line": 233,
871
+ "character": 28
872
+ },
873
+ "name": "Component",
874
+ "componentId": {
875
+ "scope": "teambit.component",
876
+ "name": "component"
877
+ }
878
+ },
879
+ "isOptional": false,
880
+ "isSpread": false
881
+ }
882
+ ],
883
+ "returnType": {
884
+ "__schema": "TypeRefSchema",
885
+ "location": {
886
+ "filePath": "remove.main.runtime.ts",
887
+ "line": 233,
888
+ "character": 3
889
+ },
890
+ "name": "RemoveInfo"
891
+ },
892
+ "modifiers": []
893
+ },
894
+ {
895
+ "__schema": "FunctionLikeSchema",
896
+ "location": {
897
+ "filePath": "remove.main.runtime.ts",
898
+ "line": 240,
899
+ "character": 3
900
+ },
901
+ "signature": "(method) RemoveMain.isRemoved(component: Component): boolean",
902
+ "name": "isRemoved",
903
+ "params": [
904
+ {
905
+ "__schema": "ParameterSchema",
906
+ "location": {
907
+ "filePath": "remove.main.runtime.ts",
908
+ "line": 240,
909
+ "character": 13
910
+ },
911
+ "name": "component",
912
+ "type": {
913
+ "__schema": "TypeRefSchema",
914
+ "location": {
915
+ "filePath": "remove.main.runtime.ts",
916
+ "line": 240,
917
+ "character": 24
918
+ },
919
+ "name": "Component",
920
+ "componentId": {
921
+ "scope": "teambit.component",
922
+ "name": "component"
923
+ }
924
+ },
925
+ "isOptional": false,
926
+ "isSpread": false
927
+ }
928
+ ],
929
+ "returnType": {
930
+ "__schema": "KeywordTypeSchema",
931
+ "location": {
932
+ "filePath": "remove.main.runtime.ts",
933
+ "line": 240,
934
+ "character": 36
935
+ },
936
+ "name": "boolean"
937
+ },
938
+ "modifiers": []
939
+ },
940
+ {
941
+ "__schema": "FunctionLikeSchema",
942
+ "location": {
943
+ "filePath": "remove.main.runtime.ts",
944
+ "line": 247,
945
+ "character": 3
946
+ },
947
+ "doc": {
948
+ "__schema": "DocSchema",
949
+ "location": {
950
+ "filePath": "remove.main.runtime.ts",
951
+ "line": 244,
952
+ "character": 3
953
+ },
954
+ "raw": "/**\n * performant version of isRemoved() in case the component object is not available and loading it is expensive.\n */",
955
+ "comment": "performant version of isRemoved() in case the component object is not available and loading it is expensive."
956
+ },
957
+ "signature": "(method) RemoveMain.isRemovedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>",
958
+ "name": "isRemovedByIdWithoutLoadingComponent",
959
+ "params": [
960
+ {
961
+ "__schema": "ParameterSchema",
962
+ "location": {
963
+ "filePath": "remove.main.runtime.ts",
964
+ "line": 247,
965
+ "character": 46
966
+ },
967
+ "name": "componentId",
968
+ "type": {
969
+ "__schema": "TypeRefSchema",
970
+ "location": {
971
+ "filePath": "remove.main.runtime.ts",
972
+ "line": 247,
973
+ "character": 59
974
+ },
975
+ "name": "ComponentID",
976
+ "componentId": {
977
+ "scope": "teambit.component",
978
+ "name": "component-id",
979
+ "version": "1.2.0"
980
+ }
981
+ },
982
+ "isOptional": false,
983
+ "isSpread": false
984
+ }
985
+ ],
986
+ "returnType": {
987
+ "__schema": "TypeRefSchema",
988
+ "location": {
989
+ "filePath": "remove.main.runtime.ts",
990
+ "line": 247,
991
+ "character": 73
992
+ },
993
+ "name": "Promise",
994
+ "typeArgs": [
995
+ {
996
+ "__schema": "KeywordTypeSchema",
997
+ "location": {
998
+ "filePath": "remove.main.runtime.ts",
999
+ "line": 247,
1000
+ "character": 81
1001
+ },
1002
+ "name": "boolean"
1003
+ }
1004
+ ]
1005
+ },
1006
+ "modifiers": [
1007
+ "async"
1008
+ ]
1009
+ },
1010
+ {
1011
+ "__schema": "FunctionLikeSchema",
1012
+ "location": {
1013
+ "filePath": "remove.main.runtime.ts",
1014
+ "line": 262,
1015
+ "character": 3
1016
+ },
1017
+ "doc": {
1018
+ "__schema": "DocSchema",
1019
+ "location": {
1020
+ "filePath": "remove.main.runtime.ts",
1021
+ "line": 259,
1022
+ "character": 3
1023
+ },
1024
+ "raw": "/**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */",
1025
+ "comment": "get components that were soft-removed and tagged/snapped/merged but not exported yet."
1026
+ },
1027
+ "signature": "(method) RemoveMain.getRemovedStaged(): Promise<ComponentID[]>",
1028
+ "name": "getRemovedStaged",
1029
+ "params": [],
1030
+ "returnType": {
1031
+ "__schema": "TypeRefSchema",
1032
+ "location": {
1033
+ "filePath": "remove.main.runtime.ts",
1034
+ "line": 262,
1035
+ "character": 29
1036
+ },
1037
+ "name": "Promise",
1038
+ "typeArgs": [
1039
+ {
1040
+ "__schema": "TypeArraySchema",
1041
+ "location": {
1042
+ "filePath": "remove.main.runtime.ts",
1043
+ "line": 262,
1044
+ "character": 37
1045
+ },
1046
+ "type": {
1047
+ "__schema": "TypeRefSchema",
1048
+ "location": {
1049
+ "filePath": "remove.main.runtime.ts",
1050
+ "line": 262,
1051
+ "character": 37
1052
+ },
1053
+ "name": "ComponentID",
1054
+ "componentId": {
1055
+ "scope": "teambit.component",
1056
+ "name": "component-id",
1057
+ "version": "1.2.0"
1058
+ }
1059
+ }
1060
+ }
1061
+ ]
1062
+ },
1063
+ "modifiers": [
1064
+ "async"
1065
+ ]
1066
+ },
1067
+ {
1068
+ "__schema": "FunctionLikeSchema",
1069
+ "location": {
1070
+ "filePath": "remove.main.runtime.ts",
1071
+ "line": 266,
1072
+ "character": 3
1073
+ },
1074
+ "signature": "(method) RemoveMain.addRemovedDependenciesIssues(components: Component[]): Promise<void>",
1075
+ "name": "addRemovedDependenciesIssues",
1076
+ "params": [
1077
+ {
1078
+ "__schema": "ParameterSchema",
1079
+ "location": {
1080
+ "filePath": "remove.main.runtime.ts",
1081
+ "line": 266,
1082
+ "character": 38
1083
+ },
1084
+ "name": "components",
1085
+ "type": {
1086
+ "__schema": "TypeArraySchema",
1087
+ "location": {
1088
+ "filePath": "remove.main.runtime.ts",
1089
+ "line": 266,
1090
+ "character": 50
1091
+ },
1092
+ "type": {
1093
+ "__schema": "TypeRefSchema",
1094
+ "location": {
1095
+ "filePath": "remove.main.runtime.ts",
1096
+ "line": 266,
1097
+ "character": 50
1098
+ },
1099
+ "name": "Component",
1100
+ "componentId": {
1101
+ "scope": "teambit.component",
1102
+ "name": "component"
1103
+ }
1104
+ }
1105
+ },
1106
+ "isOptional": false,
1107
+ "isSpread": false
1108
+ }
1109
+ ],
1110
+ "returnType": {
1111
+ "__schema": "InferenceTypeSchema",
1112
+ "location": {
1113
+ "filePath": "remove.main.runtime.ts",
1114
+ "line": 266,
1115
+ "character": 3
1116
+ },
1117
+ "type": "Promise<void>"
1118
+ },
1119
+ "modifiers": [
1120
+ "async"
1121
+ ]
1122
+ },
1123
+ {
1124
+ "__schema": "VariableLikeSchema",
1125
+ "location": {
1126
+ "filePath": "remove.main.runtime.ts",
1127
+ "line": 335,
1128
+ "character": 3
1129
+ },
1130
+ "signature": "(property) RemoveMain.slots: never[]",
1131
+ "name": "slots",
1132
+ "type": {
1133
+ "__schema": "InferenceTypeSchema",
1134
+ "location": {
1135
+ "filePath": "remove.main.runtime.ts",
1136
+ "line": 335,
1137
+ "character": 3
1138
+ },
1139
+ "type": "never[]"
1140
+ },
1141
+ "isOptional": true,
1142
+ "defaultValue": "[]"
1143
+ },
1144
+ {
1145
+ "__schema": "VariableLikeSchema",
1146
+ "location": {
1147
+ "filePath": "remove.main.runtime.ts",
1148
+ "line": 336,
1149
+ "character": 3
1150
+ },
1151
+ "signature": "(property) RemoveMain.dependencies: Aspect[]",
1152
+ "name": "dependencies",
1153
+ "type": {
1154
+ "__schema": "InferenceTypeSchema",
1155
+ "location": {
1156
+ "filePath": "remove.main.runtime.ts",
1157
+ "line": 336,
1158
+ "character": 3
1159
+ },
1160
+ "type": "Aspect[]"
1161
+ },
1162
+ "isOptional": true,
1163
+ "defaultValue": "[\n WorkspaceAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ]"
1164
+ },
1165
+ {
1166
+ "__schema": "VariableLikeSchema",
1167
+ "location": {
1168
+ "filePath": "remove.main.runtime.ts",
1169
+ "line": 345,
1170
+ "character": 3
1171
+ },
1172
+ "signature": "(property) RemoveMain.runtime: RuntimeDefinition",
1173
+ "name": "runtime",
1174
+ "type": {
1175
+ "__schema": "InferenceTypeSchema",
1176
+ "location": {
1177
+ "filePath": "remove.main.runtime.ts",
1178
+ "line": 345,
1179
+ "character": 3
1180
+ },
1181
+ "type": "RuntimeDefinition"
1182
+ },
1183
+ "isOptional": true,
1184
+ "defaultValue": "MainRuntime"
1185
+ },
1186
+ {
1187
+ "__schema": "FunctionLikeSchema",
1188
+ "location": {
1189
+ "filePath": "remove.main.runtime.ts",
1190
+ "line": 347,
1191
+ "character": 3
1192
+ },
1193
+ "signature": "(method) RemoveMain.provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<RemoveMain>",
1194
+ "name": "provider",
1195
+ "params": [
1196
+ {
1197
+ "__schema": "ParameterSchema",
1198
+ "location": {
1199
+ "filePath": "remove.main.runtime.ts",
1200
+ "line": 347,
1201
+ "character": 25
1202
+ },
1203
+ "name": "[ workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues ]",
1204
+ "type": {
1205
+ "__schema": "TupleTypeSchema",
1206
+ "location": {
1207
+ "filePath": "remove.main.runtime.ts",
1208
+ "line": 347,
1209
+ "character": 107
1210
+ },
1211
+ "elements": [
1212
+ {
1213
+ "__schema": "TypeRefSchema",
1214
+ "location": {
1215
+ "filePath": "remove.main.runtime.ts",
1216
+ "line": 348,
1217
+ "character": 5
1218
+ },
1219
+ "name": "Workspace",
1220
+ "componentId": {
1221
+ "scope": "teambit.workspace",
1222
+ "name": "workspace"
1223
+ }
1224
+ },
1225
+ {
1226
+ "__schema": "TypeRefSchema",
1227
+ "location": {
1228
+ "filePath": "remove.main.runtime.ts",
1229
+ "line": 349,
1230
+ "character": 5
1231
+ },
1232
+ "name": "CLIMain",
1233
+ "componentId": {
1234
+ "scope": "teambit.harmony",
1235
+ "name": "cli"
1236
+ }
1237
+ },
1238
+ {
1239
+ "__schema": "TypeRefSchema",
1240
+ "location": {
1241
+ "filePath": "remove.main.runtime.ts",
1242
+ "line": 350,
1243
+ "character": 5
1244
+ },
1245
+ "name": "LoggerMain",
1246
+ "componentId": {
1247
+ "scope": "teambit.harmony",
1248
+ "name": "logger"
1249
+ }
1250
+ },
1251
+ {
1252
+ "__schema": "TypeRefSchema",
1253
+ "location": {
1254
+ "filePath": "remove.main.runtime.ts",
1255
+ "line": 351,
1256
+ "character": 5
1257
+ },
1258
+ "name": "ComponentMain",
1259
+ "componentId": {
1260
+ "scope": "teambit.component",
1261
+ "name": "component"
1262
+ }
1263
+ },
1264
+ {
1265
+ "__schema": "TypeRefSchema",
1266
+ "location": {
1267
+ "filePath": "remove.main.runtime.ts",
1268
+ "line": 352,
1269
+ "character": 5
1270
+ },
1271
+ "name": "ImporterMain",
1272
+ "componentId": {
1273
+ "scope": "teambit.scope",
1274
+ "name": "importer"
1275
+ }
1276
+ },
1277
+ {
1278
+ "__schema": "TypeRefSchema",
1279
+ "location": {
1280
+ "filePath": "remove.main.runtime.ts",
1281
+ "line": 353,
1282
+ "character": 5
1283
+ },
1284
+ "name": "DependencyResolverMain",
1285
+ "componentId": {
1286
+ "scope": "teambit.dependencies",
1287
+ "name": "dependency-resolver"
1288
+ }
1289
+ },
1290
+ {
1291
+ "__schema": "TypeRefSchema",
1292
+ "location": {
1293
+ "filePath": "remove.main.runtime.ts",
1294
+ "line": 354,
1295
+ "character": 5
1296
+ },
1297
+ "name": "IssuesMain",
1298
+ "componentId": {
1299
+ "scope": "teambit.component",
1300
+ "name": "issues"
1301
+ }
1302
+ }
1303
+ ]
1304
+ },
1305
+ "isOptional": false,
1306
+ "isSpread": false
1307
+ }
1308
+ ],
1309
+ "returnType": {
1310
+ "__schema": "InferenceTypeSchema",
1311
+ "location": {
1312
+ "filePath": "remove.main.runtime.ts",
1313
+ "line": 347,
1314
+ "character": 3
1315
+ },
1316
+ "type": "Promise<RemoveMain>"
1317
+ },
1318
+ "modifiers": [
1319
+ "static",
1320
+ "async"
1321
+ ]
1322
+ }
1323
+ ],
1324
+ "extendsNodes": [],
1325
+ "implementNodes": []
1326
+ },
1327
+ {
1328
+ "__schema": "TypeSchema",
1329
+ "location": {
1330
+ "filePath": "remove.main.runtime.ts",
1331
+ "line": 28,
1332
+ "character": 1
1333
+ },
1334
+ "signature": "type RemoveInfo = {\n removed: boolean;\n removeOnMain?: boolean | undefined;\n}",
1335
+ "name": "RemoveInfo",
1336
+ "type": {
1337
+ "__schema": "TypeLiteralSchema",
1338
+ "location": {
1339
+ "filePath": "remove.main.runtime.ts",
1340
+ "line": 28,
1341
+ "character": 26
1342
+ },
1343
+ "members": [
1344
+ {
1345
+ "__schema": "VariableLikeSchema",
1346
+ "location": {
1347
+ "filePath": "remove.main.runtime.ts",
1348
+ "line": 29,
1349
+ "character": 3
1350
+ },
1351
+ "signature": "(property) removed: boolean",
1352
+ "name": "removed",
1353
+ "type": {
1354
+ "__schema": "KeywordTypeSchema",
1355
+ "location": {
1356
+ "filePath": "remove.main.runtime.ts",
1357
+ "line": 29,
1358
+ "character": 12
1359
+ },
1360
+ "name": "boolean"
1361
+ },
1362
+ "isOptional": false
1363
+ },
1364
+ {
1365
+ "__schema": "VariableLikeSchema",
1366
+ "location": {
1367
+ "filePath": "remove.main.runtime.ts",
1368
+ "line": 33,
1369
+ "character": 3
1370
+ },
1371
+ "doc": {
1372
+ "__schema": "DocSchema",
1373
+ "location": {
1374
+ "filePath": "remove.main.runtime.ts",
1375
+ "line": 30,
1376
+ "character": 3
1377
+ },
1378
+ "raw": "/**\n * whether to remove the component from default lane once merged\n */",
1379
+ "comment": "whether to remove the component from default lane once merged"
1380
+ },
1381
+ "signature": "(property) removeOnMain?: boolean | undefined",
1382
+ "name": "removeOnMain",
1383
+ "type": {
1384
+ "__schema": "KeywordTypeSchema",
1385
+ "location": {
1386
+ "filePath": "remove.main.runtime.ts",
1387
+ "line": 33,
1388
+ "character": 18
1389
+ },
1390
+ "name": "boolean"
1391
+ },
1392
+ "isOptional": true
1393
+ }
1394
+ ]
1395
+ }
1396
+ },
1397
+ {
1398
+ "__schema": "ClassSchema",
1399
+ "location": {
1400
+ "filePath": "removed-local-objects.ts",
1401
+ "line": 4,
1402
+ "character": 1
1403
+ },
1404
+ "signature": "class RemovedLocalObjects",
1405
+ "name": "RemovedLocalObjects",
1406
+ "members": [
1407
+ {
1408
+ "__schema": "VariableLikeSchema",
1409
+ "location": {
1410
+ "filePath": "removed-local-objects.ts",
1411
+ "line": 5,
1412
+ "character": 3
1413
+ },
1414
+ "signature": "(property) RemovedLocalObjects.modifiedComponents: ComponentIdList",
1415
+ "name": "modifiedComponents",
1416
+ "type": {
1417
+ "__schema": "TypeRefSchema",
1418
+ "location": {
1419
+ "filePath": "removed-local-objects.ts",
1420
+ "line": 5,
1421
+ "character": 3
1422
+ },
1423
+ "name": "ComponentIdList",
1424
+ "componentId": {
1425
+ "scope": "teambit.component",
1426
+ "name": "component-id",
1427
+ "version": "1.2.0"
1428
+ }
1429
+ },
1430
+ "isOptional": false
1431
+ },
1432
+ {
1433
+ "__schema": "ConstructorSchema",
1434
+ "location": {
1435
+ "filePath": "removed-local-objects.ts",
1436
+ "line": 6,
1437
+ "character": 3
1438
+ },
1439
+ "signature": "constructor RemovedLocalObjects(removedComponentIds?: ComponentIdList, missingComponents?: ComponentIdList, modifiedComponents?: ComponentIdList, dependentBits?: Record<string, any>, removedFromLane?: ComponentIdList): RemovedLocalObjects",
1440
+ "name": "constructor",
1441
+ "params": [
1442
+ {
1443
+ "__schema": "ParameterSchema",
1444
+ "location": {
1445
+ "filePath": "removed-local-objects.ts",
1446
+ "line": 7,
1447
+ "character": 5
1448
+ },
1449
+ "name": "removedComponentIds",
1450
+ "type": {
1451
+ "__schema": "TypeRefSchema",
1452
+ "location": {
1453
+ "filePath": "removed-local-objects.ts",
1454
+ "line": 7,
1455
+ "character": 27
1456
+ },
1457
+ "name": "ComponentIdList",
1458
+ "componentId": {
1459
+ "scope": "teambit.component",
1460
+ "name": "component-id",
1461
+ "version": "1.2.0"
1462
+ }
1463
+ },
1464
+ "isOptional": true,
1465
+ "isSpread": false
1466
+ },
1467
+ {
1468
+ "__schema": "ParameterSchema",
1469
+ "location": {
1470
+ "filePath": "removed-local-objects.ts",
1471
+ "line": 8,
1472
+ "character": 5
1473
+ },
1474
+ "name": "missingComponents",
1475
+ "type": {
1476
+ "__schema": "TypeRefSchema",
1477
+ "location": {
1478
+ "filePath": "removed-local-objects.ts",
1479
+ "line": 8,
1480
+ "character": 25
1481
+ },
1482
+ "name": "ComponentIdList",
1483
+ "componentId": {
1484
+ "scope": "teambit.component",
1485
+ "name": "component-id",
1486
+ "version": "1.2.0"
1487
+ }
1488
+ },
1489
+ "isOptional": true,
1490
+ "isSpread": false
1491
+ },
1492
+ {
1493
+ "__schema": "ParameterSchema",
1494
+ "location": {
1495
+ "filePath": "removed-local-objects.ts",
1496
+ "line": 9,
1497
+ "character": 5
1498
+ },
1499
+ "name": "modifiedComponents",
1500
+ "type": {
1501
+ "__schema": "TypeRefSchema",
1502
+ "location": {
1503
+ "filePath": "removed-local-objects.ts",
1504
+ "line": 9,
1505
+ "character": 26
1506
+ },
1507
+ "name": "ComponentIdList",
1508
+ "componentId": {
1509
+ "scope": "teambit.component",
1510
+ "name": "component-id",
1511
+ "version": "1.2.0"
1512
+ }
1513
+ },
1514
+ "isOptional": true,
1515
+ "isSpread": false
1516
+ },
1517
+ {
1518
+ "__schema": "ParameterSchema",
1519
+ "location": {
1520
+ "filePath": "removed-local-objects.ts",
1521
+ "line": 10,
1522
+ "character": 5
1523
+ },
1524
+ "name": "dependentBits",
1525
+ "type": {
1526
+ "__schema": "TypeRefSchema",
1527
+ "location": {
1528
+ "filePath": "removed-local-objects.ts",
1529
+ "line": 10,
1530
+ "character": 21
1531
+ },
1532
+ "name": "Record",
1533
+ "typeArgs": [
1534
+ {
1535
+ "__schema": "KeywordTypeSchema",
1536
+ "location": {
1537
+ "filePath": "removed-local-objects.ts",
1538
+ "line": 10,
1539
+ "character": 28
1540
+ },
1541
+ "name": "string"
1542
+ },
1543
+ {
1544
+ "__schema": "KeywordTypeSchema",
1545
+ "location": {
1546
+ "filePath": "removed-local-objects.ts",
1547
+ "line": 10,
1548
+ "character": 36
1549
+ },
1550
+ "name": "any"
1551
+ }
1552
+ ]
1553
+ },
1554
+ "isOptional": true,
1555
+ "isSpread": false
1556
+ },
1557
+ {
1558
+ "__schema": "ParameterSchema",
1559
+ "location": {
1560
+ "filePath": "removed-local-objects.ts",
1561
+ "line": 11,
1562
+ "character": 5
1563
+ },
1564
+ "name": "removedFromLane",
1565
+ "type": {
1566
+ "__schema": "TypeRefSchema",
1567
+ "location": {
1568
+ "filePath": "removed-local-objects.ts",
1569
+ "line": 11,
1570
+ "character": 23
1571
+ },
1572
+ "name": "ComponentIdList",
1573
+ "componentId": {
1574
+ "scope": "teambit.component",
1575
+ "name": "component-id",
1576
+ "version": "1.2.0"
1577
+ }
1578
+ },
1579
+ "isOptional": true,
1580
+ "isSpread": false
1581
+ }
1582
+ ],
1583
+ "returnType": {
1584
+ "__schema": "ThisTypeSchema",
1585
+ "location": {
1586
+ "filePath": "removed-local-objects.ts",
1587
+ "line": 4,
1588
+ "character": 1
1589
+ },
1590
+ "name": "RemovedLocalObjects"
1591
+ },
1592
+ "modifiers": []
1593
+ }
1594
+ ],
1595
+ "extendsNodes": [
1596
+ {
1597
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1598
+ "location": {
1599
+ "filePath": "removed-local-objects.ts",
1600
+ "line": 4,
1601
+ "character": 42
1602
+ },
1603
+ "name": "extends RemovedObjects",
1604
+ "typeArgs": [],
1605
+ "expression": {
1606
+ "__schema": "TypeRefSchema",
1607
+ "location": {
1608
+ "filePath": "removed-local-objects.ts",
1609
+ "line": 4,
1610
+ "character": 42
1611
+ },
1612
+ "name": "RemovedObjects",
1613
+ "componentId": {
1614
+ "_legacy": {
1615
+ "scope": "teambit.component",
1616
+ "name": "remove",
1617
+ "version": "1.0.190"
1618
+ },
1619
+ "_scope": "teambit.component"
1620
+ }
1621
+ }
1622
+ }
1623
+ ],
1624
+ "implementNodes": []
1625
+ },
1626
+ {
1627
+ "__schema": "FunctionLikeSchema",
1628
+ "location": {
1629
+ "filePath": "remove-template.ts",
1630
+ "line": 5,
1631
+ "character": 1
1632
+ },
1633
+ "signature": "function removeTemplate({ dependentBits, modifiedComponents, removedComponentIds, missingComponents, removedFromLane }: {\n dependentBits: any;\n modifiedComponents?: never[] | undefined;\n removedComponentIds: any;\n missingComponents: any;\n removedFromLane: any;\n}, isRemote: any): string",
1634
+ "name": "removeTemplate",
1635
+ "params": [
1636
+ {
1637
+ "__schema": "ParameterSchema",
1638
+ "location": {
1639
+ "filePath": "remove-template.ts",
1640
+ "line": 6,
1641
+ "character": 3
1642
+ },
1643
+ "name": "{ dependentBits, modifiedComponents = [], removedComponentIds, missingComponents, removedFromLane }",
1644
+ "type": {
1645
+ "__schema": "TypeLiteralSchema",
1646
+ "location": {
1647
+ "filePath": "remove-template.ts",
1648
+ "line": 6,
1649
+ "character": 3
1650
+ },
1651
+ "members": [
1652
+ {
1653
+ "__schema": "InferenceTypeSchema",
1654
+ "location": {
1655
+ "filePath": "remove-template.ts",
1656
+ "line": 6,
1657
+ "character": 3
1658
+ },
1659
+ "name": "dependentBits",
1660
+ "type": "any"
1661
+ },
1662
+ {
1663
+ "__schema": "InferenceTypeSchema",
1664
+ "location": {
1665
+ "filePath": "remove-template.ts",
1666
+ "line": 6,
1667
+ "character": 3
1668
+ },
1669
+ "name": "modifiedComponents",
1670
+ "type": "never[]"
1671
+ },
1672
+ {
1673
+ "__schema": "InferenceTypeSchema",
1674
+ "location": {
1675
+ "filePath": "remove-template.ts",
1676
+ "line": 6,
1677
+ "character": 3
1678
+ },
1679
+ "name": "removedComponentIds",
1680
+ "type": "any"
1681
+ },
1682
+ {
1683
+ "__schema": "InferenceTypeSchema",
1684
+ "location": {
1685
+ "filePath": "remove-template.ts",
1686
+ "line": 6,
1687
+ "character": 3
1688
+ },
1689
+ "name": "missingComponents",
1690
+ "type": "any"
1691
+ },
1692
+ {
1693
+ "__schema": "InferenceTypeSchema",
1694
+ "location": {
1695
+ "filePath": "remove-template.ts",
1696
+ "line": 6,
1697
+ "character": 3
1698
+ },
1699
+ "name": "removedFromLane",
1700
+ "type": "any"
1701
+ }
1702
+ ]
1703
+ },
1704
+ "isOptional": false,
1705
+ "objectBindingNodes": [
1706
+ {
1707
+ "__schema": "InferenceTypeSchema",
1708
+ "location": {
1709
+ "filePath": "remove-template.ts",
1710
+ "line": 6,
1711
+ "character": 5
1712
+ },
1713
+ "name": "dependentBits",
1714
+ "type": "any",
1715
+ "isSpread": false
1716
+ },
1717
+ {
1718
+ "__schema": "InferenceTypeSchema",
1719
+ "location": {
1720
+ "filePath": "remove-template.ts",
1721
+ "line": 6,
1722
+ "character": 20
1723
+ },
1724
+ "name": "modifiedComponents",
1725
+ "type": "never[]",
1726
+ "defaultValue": "[]",
1727
+ "isSpread": false
1728
+ },
1729
+ {
1730
+ "__schema": "InferenceTypeSchema",
1731
+ "location": {
1732
+ "filePath": "remove-template.ts",
1733
+ "line": 6,
1734
+ "character": 45
1735
+ },
1736
+ "name": "removedComponentIds",
1737
+ "type": "any",
1738
+ "isSpread": false
1739
+ },
1740
+ {
1741
+ "__schema": "InferenceTypeSchema",
1742
+ "location": {
1743
+ "filePath": "remove-template.ts",
1744
+ "line": 6,
1745
+ "character": 66
1746
+ },
1747
+ "name": "missingComponents",
1748
+ "type": "any",
1749
+ "isSpread": false
1750
+ },
1751
+ {
1752
+ "__schema": "InferenceTypeSchema",
1753
+ "location": {
1754
+ "filePath": "remove-template.ts",
1755
+ "line": 6,
1756
+ "character": 85
1757
+ },
1758
+ "name": "removedFromLane",
1759
+ "type": "any",
1760
+ "isSpread": false
1761
+ }
1762
+ ],
1763
+ "isSpread": false
1764
+ },
1765
+ {
1766
+ "__schema": "ParameterSchema",
1767
+ "location": {
1768
+ "filePath": "remove-template.ts",
1769
+ "line": 7,
1770
+ "character": 3
1771
+ },
1772
+ "name": "isRemote",
1773
+ "type": {
1774
+ "__schema": "InferenceTypeSchema",
1775
+ "location": {
1776
+ "filePath": "remove-template.ts",
1777
+ "line": 7,
1778
+ "character": 3
1779
+ },
1780
+ "type": "any"
1781
+ },
1782
+ "isOptional": false,
1783
+ "isSpread": false
1784
+ }
1785
+ ],
1786
+ "returnType": {
1787
+ "__schema": "InferenceTypeSchema",
1788
+ "location": {
1789
+ "filePath": "remove-template.ts",
1790
+ "line": 5,
1791
+ "character": 1
1792
+ },
1793
+ "type": "string"
1794
+ },
1795
+ "modifiers": [
1796
+ "export"
1797
+ ]
1798
+ },
1799
+ {
1800
+ "__schema": "UnImplementedSchema",
1801
+ "location": {
1802
+ "filePath": "index.ts",
1803
+ "line": 6,
1804
+ "character": 16
1805
+ },
1806
+ "name": "RemoveAspect",
1807
+ "type": "Identifier"
1808
+ },
1809
+ {
1810
+ "__schema": "VariableLikeSchema",
1811
+ "location": {
1812
+ "filePath": "remove.aspect.ts",
1813
+ "line": 3,
1814
+ "character": 14
1815
+ },
1816
+ "signature": "const RemoveAspect: Aspect",
1817
+ "name": "RemoveAspect",
1818
+ "type": {
1819
+ "__schema": "TypeRefSchema",
1820
+ "location": {
1821
+ "filePath": "remove.aspect.ts",
1822
+ "line": 3,
1823
+ "character": 14
1824
+ },
1825
+ "name": "Aspect",
1826
+ "componentId": {
1827
+ "scope": "teambit.harmony",
1828
+ "name": "harmony",
1829
+ "version": "0.4.6"
1830
+ }
1831
+ },
1832
+ "isOptional": false,
1833
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/remove',\n})"
1834
+ }
1835
+ ],
1836
+ "internals": []
1837
+ },
1838
+ "internals": [
1839
+ {
1840
+ "__schema": "ModuleSchema",
1841
+ "location": {
1842
+ "filePath": "remove.main.runtime.ts",
1843
+ "line": 1,
1844
+ "character": 1
1845
+ },
1846
+ "exports": [
1847
+ {
1848
+ "__schema": "TypeSchema",
1849
+ "location": {
1850
+ "filePath": "remove.main.runtime.ts",
1851
+ "line": 28,
1852
+ "character": 1
1853
+ },
1854
+ "signature": "type RemoveInfo = {\n removed: boolean;\n removeOnMain?: boolean | undefined;\n}",
1855
+ "name": "RemoveInfo",
1856
+ "type": {
1857
+ "__schema": "TypeLiteralSchema",
1858
+ "location": {
1859
+ "filePath": "remove.main.runtime.ts",
1860
+ "line": 28,
1861
+ "character": 26
1862
+ },
1863
+ "members": [
1864
+ {
1865
+ "__schema": "VariableLikeSchema",
1866
+ "location": {
1867
+ "filePath": "remove.main.runtime.ts",
1868
+ "line": 29,
1869
+ "character": 3
1870
+ },
1871
+ "signature": "(property) removed: boolean",
1872
+ "name": "removed",
1873
+ "type": {
1874
+ "__schema": "KeywordTypeSchema",
1875
+ "location": {
1876
+ "filePath": "remove.main.runtime.ts",
1877
+ "line": 29,
1878
+ "character": 12
1879
+ },
1880
+ "name": "boolean"
1881
+ },
1882
+ "isOptional": false
1883
+ },
1884
+ {
1885
+ "__schema": "VariableLikeSchema",
1886
+ "location": {
1887
+ "filePath": "remove.main.runtime.ts",
1888
+ "line": 33,
1889
+ "character": 3
1890
+ },
1891
+ "doc": {
1892
+ "__schema": "DocSchema",
1893
+ "location": {
1894
+ "filePath": "remove.main.runtime.ts",
1895
+ "line": 30,
1896
+ "character": 3
1897
+ },
1898
+ "raw": "/**\n * whether to remove the component from default lane once merged\n */",
1899
+ "comment": "whether to remove the component from default lane once merged"
1900
+ },
1901
+ "signature": "(property) removeOnMain?: boolean | undefined",
1902
+ "name": "removeOnMain",
1903
+ "type": {
1904
+ "__schema": "KeywordTypeSchema",
1905
+ "location": {
1906
+ "filePath": "remove.main.runtime.ts",
1907
+ "line": 33,
1908
+ "character": 18
1909
+ },
1910
+ "name": "boolean"
1911
+ },
1912
+ "isOptional": true
1913
+ }
1914
+ ]
1915
+ }
1916
+ },
1917
+ {
1918
+ "__schema": "ClassSchema",
1919
+ "location": {
1920
+ "filePath": "remove.main.runtime.ts",
1921
+ "line": 36,
1922
+ "character": 1
1923
+ },
1924
+ "signature": "class RemoveMain",
1925
+ "name": "RemoveMain",
1926
+ "members": [
1927
+ {
1928
+ "__schema": "ConstructorSchema",
1929
+ "location": {
1930
+ "filePath": "remove.main.runtime.ts",
1931
+ "line": 37,
1932
+ "character": 3
1933
+ },
1934
+ "signature": "constructor RemoveMain(workspace: Workspace, logger: Logger, importer: ImporterMain, depResolver: DependencyResolverMain): RemoveMain",
1935
+ "name": "constructor",
1936
+ "params": [
1937
+ {
1938
+ "__schema": "ParameterSchema",
1939
+ "location": {
1940
+ "filePath": "remove.main.runtime.ts",
1941
+ "line": 38,
1942
+ "character": 5
1943
+ },
1944
+ "name": "workspace",
1945
+ "type": {
1946
+ "__schema": "TypeRefSchema",
1947
+ "location": {
1948
+ "filePath": "remove.main.runtime.ts",
1949
+ "line": 38,
1950
+ "character": 24
1951
+ },
1952
+ "name": "Workspace",
1953
+ "componentId": {
1954
+ "scope": "teambit.workspace",
1955
+ "name": "workspace"
1956
+ }
1957
+ },
1958
+ "isOptional": false,
1959
+ "isSpread": false
1960
+ },
1961
+ {
1962
+ "__schema": "ParameterSchema",
1963
+ "location": {
1964
+ "filePath": "remove.main.runtime.ts",
1965
+ "line": 39,
1966
+ "character": 5
1967
+ },
1968
+ "name": "logger",
1969
+ "type": {
1970
+ "__schema": "TypeRefSchema",
1971
+ "location": {
1972
+ "filePath": "remove.main.runtime.ts",
1973
+ "line": 39,
1974
+ "character": 20
1975
+ },
1976
+ "name": "Logger",
1977
+ "componentId": {
1978
+ "scope": "teambit.harmony",
1979
+ "name": "logger"
1980
+ }
1981
+ },
1982
+ "isOptional": false,
1983
+ "isSpread": false
1984
+ },
1985
+ {
1986
+ "__schema": "ParameterSchema",
1987
+ "location": {
1988
+ "filePath": "remove.main.runtime.ts",
1989
+ "line": 40,
1990
+ "character": 5
1991
+ },
1992
+ "name": "importer",
1993
+ "type": {
1994
+ "__schema": "TypeRefSchema",
1995
+ "location": {
1996
+ "filePath": "remove.main.runtime.ts",
1997
+ "line": 40,
1998
+ "character": 23
1999
+ },
2000
+ "name": "ImporterMain",
2001
+ "componentId": {
2002
+ "scope": "teambit.scope",
2003
+ "name": "importer"
2004
+ }
2005
+ },
2006
+ "isOptional": false,
2007
+ "isSpread": false
2008
+ },
2009
+ {
2010
+ "__schema": "ParameterSchema",
2011
+ "location": {
2012
+ "filePath": "remove.main.runtime.ts",
2013
+ "line": 41,
2014
+ "character": 5
2015
+ },
2016
+ "name": "depResolver",
2017
+ "type": {
2018
+ "__schema": "TypeRefSchema",
2019
+ "location": {
2020
+ "filePath": "remove.main.runtime.ts",
2021
+ "line": 41,
2022
+ "character": 26
2023
+ },
2024
+ "name": "DependencyResolverMain",
2025
+ "componentId": {
2026
+ "scope": "teambit.dependencies",
2027
+ "name": "dependency-resolver"
2028
+ }
2029
+ },
2030
+ "isOptional": false,
2031
+ "isSpread": false
2032
+ }
2033
+ ],
2034
+ "returnType": {
2035
+ "__schema": "ThisTypeSchema",
2036
+ "location": {
2037
+ "filePath": "remove.main.runtime.ts",
2038
+ "line": 36,
2039
+ "character": 1
2040
+ },
2041
+ "name": "RemoveMain"
2042
+ },
2043
+ "modifiers": []
2044
+ },
2045
+ {
2046
+ "__schema": "FunctionLikeSchema",
2047
+ "location": {
2048
+ "filePath": "remove.main.runtime.ts",
2049
+ "line": 44,
2050
+ "character": 3
2051
+ },
2052
+ "signature": "(method) RemoveMain.remove({ componentsPattern, force, remote, track, deleteFiles, }: {\n componentsPattern: string;\n force?: boolean;\n remote?: boolean;\n track?: boolean;\n deleteFiles?: boolean;\n}): Promise<RemoveComponentsResult>",
2053
+ "name": "remove",
2054
+ "params": [
2055
+ {
2056
+ "__schema": "ParameterSchema",
2057
+ "location": {
2058
+ "filePath": "remove.main.runtime.ts",
2059
+ "line": 44,
2060
+ "character": 16
2061
+ },
2062
+ "name": "{ componentsPattern, force = false, remote = false, track = false, deleteFiles = true }",
2063
+ "type": {
2064
+ "__schema": "TypeLiteralSchema",
2065
+ "location": {
2066
+ "filePath": "remove.main.runtime.ts",
2067
+ "line": 50,
2068
+ "character": 6
2069
+ },
2070
+ "members": [
2071
+ {
2072
+ "__schema": "VariableLikeSchema",
2073
+ "location": {
2074
+ "filePath": "remove.main.runtime.ts",
2075
+ "line": 51,
2076
+ "character": 5
2077
+ },
2078
+ "signature": "(property) componentsPattern: string",
2079
+ "name": "componentsPattern",
2080
+ "type": {
2081
+ "__schema": "KeywordTypeSchema",
2082
+ "location": {
2083
+ "filePath": "remove.main.runtime.ts",
2084
+ "line": 51,
2085
+ "character": 24
2086
+ },
2087
+ "name": "string"
2088
+ },
2089
+ "isOptional": false
2090
+ },
2091
+ {
2092
+ "__schema": "VariableLikeSchema",
2093
+ "location": {
2094
+ "filePath": "remove.main.runtime.ts",
2095
+ "line": 52,
2096
+ "character": 5
2097
+ },
2098
+ "signature": "(property) force?: boolean | undefined",
2099
+ "name": "force",
2100
+ "type": {
2101
+ "__schema": "KeywordTypeSchema",
2102
+ "location": {
2103
+ "filePath": "remove.main.runtime.ts",
2104
+ "line": 52,
2105
+ "character": 13
2106
+ },
2107
+ "name": "boolean"
2108
+ },
2109
+ "isOptional": true
2110
+ },
2111
+ {
2112
+ "__schema": "VariableLikeSchema",
2113
+ "location": {
2114
+ "filePath": "remove.main.runtime.ts",
2115
+ "line": 53,
2116
+ "character": 5
2117
+ },
2118
+ "signature": "(property) remote?: boolean | undefined",
2119
+ "name": "remote",
2120
+ "type": {
2121
+ "__schema": "KeywordTypeSchema",
2122
+ "location": {
2123
+ "filePath": "remove.main.runtime.ts",
2124
+ "line": 53,
2125
+ "character": 14
2126
+ },
2127
+ "name": "boolean"
2128
+ },
2129
+ "isOptional": true
2130
+ },
2131
+ {
2132
+ "__schema": "VariableLikeSchema",
2133
+ "location": {
2134
+ "filePath": "remove.main.runtime.ts",
2135
+ "line": 54,
2136
+ "character": 5
2137
+ },
2138
+ "signature": "(property) track?: boolean | undefined",
2139
+ "name": "track",
2140
+ "type": {
2141
+ "__schema": "KeywordTypeSchema",
2142
+ "location": {
2143
+ "filePath": "remove.main.runtime.ts",
2144
+ "line": 54,
2145
+ "character": 13
2146
+ },
2147
+ "name": "boolean"
2148
+ },
2149
+ "isOptional": true
2150
+ },
2151
+ {
2152
+ "__schema": "VariableLikeSchema",
2153
+ "location": {
2154
+ "filePath": "remove.main.runtime.ts",
2155
+ "line": 55,
2156
+ "character": 5
2157
+ },
2158
+ "signature": "(property) deleteFiles?: boolean | undefined",
2159
+ "name": "deleteFiles",
2160
+ "type": {
2161
+ "__schema": "KeywordTypeSchema",
2162
+ "location": {
2163
+ "filePath": "remove.main.runtime.ts",
2164
+ "line": 55,
2165
+ "character": 19
2166
+ },
2167
+ "name": "boolean"
2168
+ },
2169
+ "isOptional": true
2170
+ }
2171
+ ]
2172
+ },
2173
+ "isOptional": false,
2174
+ "objectBindingNodes": [
2175
+ {
2176
+ "__schema": "VariableLikeSchema",
2177
+ "location": {
2178
+ "filePath": "remove.main.runtime.ts",
2179
+ "line": 51,
2180
+ "character": 5
2181
+ },
2182
+ "signature": "(property) componentsPattern: string",
2183
+ "name": "componentsPattern",
2184
+ "type": {
2185
+ "__schema": "KeywordTypeSchema",
2186
+ "location": {
2187
+ "filePath": "remove.main.runtime.ts",
2188
+ "line": 51,
2189
+ "character": 24
2190
+ },
2191
+ "name": "string"
2192
+ },
2193
+ "isOptional": false
2194
+ },
2195
+ {
2196
+ "__schema": "VariableLikeSchema",
2197
+ "location": {
2198
+ "filePath": "remove.main.runtime.ts",
2199
+ "line": 52,
2200
+ "character": 5
2201
+ },
2202
+ "signature": "(property) force?: boolean | undefined",
2203
+ "name": "force",
2204
+ "type": {
2205
+ "__schema": "KeywordTypeSchema",
2206
+ "location": {
2207
+ "filePath": "remove.main.runtime.ts",
2208
+ "line": 52,
2209
+ "character": 13
2210
+ },
2211
+ "name": "boolean"
2212
+ },
2213
+ "isOptional": true
2214
+ },
2215
+ {
2216
+ "__schema": "VariableLikeSchema",
2217
+ "location": {
2218
+ "filePath": "remove.main.runtime.ts",
2219
+ "line": 53,
2220
+ "character": 5
2221
+ },
2222
+ "signature": "(property) remote?: boolean | undefined",
2223
+ "name": "remote",
2224
+ "type": {
2225
+ "__schema": "KeywordTypeSchema",
2226
+ "location": {
2227
+ "filePath": "remove.main.runtime.ts",
2228
+ "line": 53,
2229
+ "character": 14
2230
+ },
2231
+ "name": "boolean"
2232
+ },
2233
+ "isOptional": true
2234
+ },
2235
+ {
2236
+ "__schema": "VariableLikeSchema",
2237
+ "location": {
2238
+ "filePath": "remove.main.runtime.ts",
2239
+ "line": 54,
2240
+ "character": 5
2241
+ },
2242
+ "signature": "(property) track?: boolean | undefined",
2243
+ "name": "track",
2244
+ "type": {
2245
+ "__schema": "KeywordTypeSchema",
2246
+ "location": {
2247
+ "filePath": "remove.main.runtime.ts",
2248
+ "line": 54,
2249
+ "character": 13
2250
+ },
2251
+ "name": "boolean"
2252
+ },
2253
+ "isOptional": true
2254
+ },
2255
+ {
2256
+ "__schema": "VariableLikeSchema",
2257
+ "location": {
2258
+ "filePath": "remove.main.runtime.ts",
2259
+ "line": 55,
2260
+ "character": 5
2261
+ },
2262
+ "signature": "(property) deleteFiles?: boolean | undefined",
2263
+ "name": "deleteFiles",
2264
+ "type": {
2265
+ "__schema": "KeywordTypeSchema",
2266
+ "location": {
2267
+ "filePath": "remove.main.runtime.ts",
2268
+ "line": 55,
2269
+ "character": 19
2270
+ },
2271
+ "name": "boolean"
2272
+ },
2273
+ "isOptional": true
2274
+ }
2275
+ ],
2276
+ "isSpread": false
2277
+ }
2278
+ ],
2279
+ "returnType": {
2280
+ "__schema": "TypeRefSchema",
2281
+ "location": {
2282
+ "filePath": "remove.main.runtime.ts",
2283
+ "line": 56,
2284
+ "character": 7
2285
+ },
2286
+ "name": "Promise",
2287
+ "typeArgs": [
2288
+ {
2289
+ "__schema": "TypeRefSchema",
2290
+ "location": {
2291
+ "filePath": "remove.main.runtime.ts",
2292
+ "line": 56,
2293
+ "character": 15
2294
+ },
2295
+ "name": "RemoveComponentsResult",
2296
+ "internalFilePath": "remove-components.ts"
2297
+ }
2298
+ ]
2299
+ },
2300
+ "modifiers": [
2301
+ "async"
2302
+ ]
2303
+ },
2304
+ {
2305
+ "__schema": "FunctionLikeSchema",
2306
+ "location": {
2307
+ "filePath": "remove.main.runtime.ts",
2308
+ "line": 78,
2309
+ "character": 3
2310
+ },
2311
+ "doc": {
2312
+ "__schema": "DocSchema",
2313
+ "location": {
2314
+ "filePath": "remove.main.runtime.ts",
2315
+ "line": 75,
2316
+ "character": 3
2317
+ },
2318
+ "raw": "/**\n * remove components from the workspace.\n */",
2319
+ "comment": "remove components from the workspace."
2320
+ },
2321
+ "signature": "(method) RemoveMain.removeLocallyByIds(ids: ComponentID[], { force, reasonForRemoval }?: {\n force?: boolean;\n reasonForRemoval?: string;\n}): Promise<RemoveComponentsResult>",
2322
+ "name": "removeLocallyByIds",
2323
+ "params": [
2324
+ {
2325
+ "__schema": "ParameterSchema",
2326
+ "location": {
2327
+ "filePath": "remove.main.runtime.ts",
2328
+ "line": 79,
2329
+ "character": 5
2330
+ },
2331
+ "name": "ids",
2332
+ "type": {
2333
+ "__schema": "TypeArraySchema",
2334
+ "location": {
2335
+ "filePath": "remove.main.runtime.ts",
2336
+ "line": 79,
2337
+ "character": 10
2338
+ },
2339
+ "type": {
2340
+ "__schema": "TypeRefSchema",
2341
+ "location": {
2342
+ "filePath": "remove.main.runtime.ts",
2343
+ "line": 79,
2344
+ "character": 10
2345
+ },
2346
+ "name": "ComponentID",
2347
+ "componentId": {
2348
+ "scope": "teambit.component",
2349
+ "name": "component-id",
2350
+ "version": "1.2.0"
2351
+ }
2352
+ }
2353
+ },
2354
+ "isOptional": false,
2355
+ "isSpread": false
2356
+ },
2357
+ {
2358
+ "__schema": "ParameterSchema",
2359
+ "location": {
2360
+ "filePath": "remove.main.runtime.ts",
2361
+ "line": 80,
2362
+ "character": 5
2363
+ },
2364
+ "name": "{ force = false, reasonForRemoval }",
2365
+ "type": {
2366
+ "__schema": "TypeLiteralSchema",
2367
+ "location": {
2368
+ "filePath": "remove.main.runtime.ts",
2369
+ "line": 80,
2370
+ "character": 42
2371
+ },
2372
+ "members": [
2373
+ {
2374
+ "__schema": "VariableLikeSchema",
2375
+ "location": {
2376
+ "filePath": "remove.main.runtime.ts",
2377
+ "line": 80,
2378
+ "character": 44
2379
+ },
2380
+ "signature": "(property) force?: boolean | undefined",
2381
+ "name": "force",
2382
+ "type": {
2383
+ "__schema": "KeywordTypeSchema",
2384
+ "location": {
2385
+ "filePath": "remove.main.runtime.ts",
2386
+ "line": 80,
2387
+ "character": 52
2388
+ },
2389
+ "name": "boolean"
2390
+ },
2391
+ "isOptional": true
2392
+ },
2393
+ {
2394
+ "__schema": "VariableLikeSchema",
2395
+ "location": {
2396
+ "filePath": "remove.main.runtime.ts",
2397
+ "line": 80,
2398
+ "character": 61
2399
+ },
2400
+ "signature": "(property) reasonForRemoval?: string | undefined",
2401
+ "name": "reasonForRemoval",
2402
+ "type": {
2403
+ "__schema": "KeywordTypeSchema",
2404
+ "location": {
2405
+ "filePath": "remove.main.runtime.ts",
2406
+ "line": 80,
2407
+ "character": 80
2408
+ },
2409
+ "name": "string"
2410
+ },
2411
+ "isOptional": true
2412
+ }
2413
+ ]
2414
+ },
2415
+ "isOptional": true,
2416
+ "defaultValue": "{}",
2417
+ "objectBindingNodes": [
2418
+ {
2419
+ "__schema": "VariableLikeSchema",
2420
+ "location": {
2421
+ "filePath": "remove.main.runtime.ts",
2422
+ "line": 80,
2423
+ "character": 44
2424
+ },
2425
+ "signature": "(property) force?: boolean | undefined",
2426
+ "name": "force",
2427
+ "type": {
2428
+ "__schema": "KeywordTypeSchema",
2429
+ "location": {
2430
+ "filePath": "remove.main.runtime.ts",
2431
+ "line": 80,
2432
+ "character": 52
2433
+ },
2434
+ "name": "boolean"
2435
+ },
2436
+ "isOptional": true
2437
+ },
2438
+ {
2439
+ "__schema": "VariableLikeSchema",
2440
+ "location": {
2441
+ "filePath": "remove.main.runtime.ts",
2442
+ "line": 80,
2443
+ "character": 61
2444
+ },
2445
+ "signature": "(property) reasonForRemoval?: string | undefined",
2446
+ "name": "reasonForRemoval",
2447
+ "type": {
2448
+ "__schema": "KeywordTypeSchema",
2449
+ "location": {
2450
+ "filePath": "remove.main.runtime.ts",
2451
+ "line": 80,
2452
+ "character": 80
2453
+ },
2454
+ "name": "string"
2455
+ },
2456
+ "isOptional": true
2457
+ }
2458
+ ],
2459
+ "isSpread": false
2460
+ }
2461
+ ],
2462
+ "returnType": {
2463
+ "__schema": "InferenceTypeSchema",
2464
+ "location": {
2465
+ "filePath": "remove.main.runtime.ts",
2466
+ "line": 78,
2467
+ "character": 3
2468
+ },
2469
+ "type": "Promise<RemoveComponentsResult>"
2470
+ },
2471
+ "modifiers": [
2472
+ "async"
2473
+ ]
2474
+ },
2475
+ {
2476
+ "__schema": "FunctionLikeSchema",
2477
+ "location": {
2478
+ "filePath": "remove.main.runtime.ts",
2479
+ "line": 96,
2480
+ "character": 3
2481
+ },
2482
+ "signature": "(method) RemoveMain.markRemoveComps(componentIds: ComponentID[], shouldUpdateMain?: boolean): Promise<ComponentID[]>",
2483
+ "name": "markRemoveComps",
2484
+ "params": [
2485
+ {
2486
+ "__schema": "ParameterSchema",
2487
+ "location": {
2488
+ "filePath": "remove.main.runtime.ts",
2489
+ "line": 96,
2490
+ "character": 25
2491
+ },
2492
+ "name": "componentIds",
2493
+ "type": {
2494
+ "__schema": "TypeArraySchema",
2495
+ "location": {
2496
+ "filePath": "remove.main.runtime.ts",
2497
+ "line": 96,
2498
+ "character": 39
2499
+ },
2500
+ "type": {
2501
+ "__schema": "TypeRefSchema",
2502
+ "location": {
2503
+ "filePath": "remove.main.runtime.ts",
2504
+ "line": 96,
2505
+ "character": 39
2506
+ },
2507
+ "name": "ComponentID",
2508
+ "componentId": {
2509
+ "scope": "teambit.component",
2510
+ "name": "component-id",
2511
+ "version": "1.2.0"
2512
+ }
2513
+ }
2514
+ },
2515
+ "isOptional": false,
2516
+ "isSpread": false
2517
+ },
2518
+ {
2519
+ "__schema": "ParameterSchema",
2520
+ "location": {
2521
+ "filePath": "remove.main.runtime.ts",
2522
+ "line": 96,
2523
+ "character": 54
2524
+ },
2525
+ "name": "shouldUpdateMain",
2526
+ "type": {
2527
+ "__schema": "InferenceTypeSchema",
2528
+ "location": {
2529
+ "filePath": "remove.main.runtime.ts",
2530
+ "line": 96,
2531
+ "character": 54
2532
+ },
2533
+ "type": "boolean"
2534
+ },
2535
+ "isOptional": true,
2536
+ "defaultValue": "false",
2537
+ "isSpread": false
2538
+ }
2539
+ ],
2540
+ "returnType": {
2541
+ "__schema": "InferenceTypeSchema",
2542
+ "location": {
2543
+ "filePath": "remove.main.runtime.ts",
2544
+ "line": 96,
2545
+ "character": 3
2546
+ },
2547
+ "type": "Promise<ComponentID[]>"
2548
+ },
2549
+ "modifiers": [
2550
+ "async"
2551
+ ]
2552
+ },
2553
+ {
2554
+ "__schema": "FunctionLikeSchema",
2555
+ "location": {
2556
+ "filePath": "remove.main.runtime.ts",
2557
+ "line": 114,
2558
+ "character": 3
2559
+ },
2560
+ "signature": "(method) RemoveMain.deleteComps(componentsPattern: string, opts?: {\n updateMain?: boolean;\n}): Promise<ComponentID[]>",
2561
+ "name": "deleteComps",
2562
+ "params": [
2563
+ {
2564
+ "__schema": "ParameterSchema",
2565
+ "location": {
2566
+ "filePath": "remove.main.runtime.ts",
2567
+ "line": 114,
2568
+ "character": 21
2569
+ },
2570
+ "name": "componentsPattern",
2571
+ "type": {
2572
+ "__schema": "KeywordTypeSchema",
2573
+ "location": {
2574
+ "filePath": "remove.main.runtime.ts",
2575
+ "line": 114,
2576
+ "character": 40
2577
+ },
2578
+ "name": "string"
2579
+ },
2580
+ "isOptional": false,
2581
+ "isSpread": false
2582
+ },
2583
+ {
2584
+ "__schema": "ParameterSchema",
2585
+ "location": {
2586
+ "filePath": "remove.main.runtime.ts",
2587
+ "line": 114,
2588
+ "character": 48
2589
+ },
2590
+ "name": "opts",
2591
+ "type": {
2592
+ "__schema": "TypeLiteralSchema",
2593
+ "location": {
2594
+ "filePath": "remove.main.runtime.ts",
2595
+ "line": 114,
2596
+ "character": 54
2597
+ },
2598
+ "members": [
2599
+ {
2600
+ "__schema": "VariableLikeSchema",
2601
+ "location": {
2602
+ "filePath": "remove.main.runtime.ts",
2603
+ "line": 114,
2604
+ "character": 56
2605
+ },
2606
+ "signature": "(property) updateMain?: boolean | undefined",
2607
+ "name": "updateMain",
2608
+ "type": {
2609
+ "__schema": "KeywordTypeSchema",
2610
+ "location": {
2611
+ "filePath": "remove.main.runtime.ts",
2612
+ "line": 114,
2613
+ "character": 69
2614
+ },
2615
+ "name": "boolean"
2616
+ },
2617
+ "isOptional": true
2618
+ }
2619
+ ]
2620
+ },
2621
+ "isOptional": true,
2622
+ "defaultValue": "{}",
2623
+ "isSpread": false
2624
+ }
2625
+ ],
2626
+ "returnType": {
2627
+ "__schema": "TypeRefSchema",
2628
+ "location": {
2629
+ "filePath": "remove.main.runtime.ts",
2630
+ "line": 114,
2631
+ "character": 86
2632
+ },
2633
+ "name": "Promise",
2634
+ "typeArgs": [
2635
+ {
2636
+ "__schema": "TypeArraySchema",
2637
+ "location": {
2638
+ "filePath": "remove.main.runtime.ts",
2639
+ "line": 114,
2640
+ "character": 94
2641
+ },
2642
+ "type": {
2643
+ "__schema": "TypeRefSchema",
2644
+ "location": {
2645
+ "filePath": "remove.main.runtime.ts",
2646
+ "line": 114,
2647
+ "character": 94
2648
+ },
2649
+ "name": "ComponentID",
2650
+ "componentId": {
2651
+ "scope": "teambit.component",
2652
+ "name": "component-id",
2653
+ "version": "1.2.0"
2654
+ }
2655
+ }
2656
+ }
2657
+ ]
2658
+ },
2659
+ "modifiers": [
2660
+ "async"
2661
+ ]
2662
+ },
2663
+ {
2664
+ "__schema": "FunctionLikeSchema",
2665
+ "location": {
2666
+ "filePath": "remove.main.runtime.ts",
2667
+ "line": 148,
2668
+ "character": 3
2669
+ },
2670
+ "doc": {
2671
+ "__schema": "DocSchema",
2672
+ "location": {
2673
+ "filePath": "remove.main.runtime.ts",
2674
+ "line": 136,
2675
+ "character": 3
2676
+ },
2677
+ "raw": "/**\n * recover a soft-removed component.\n * there are 4 different scenarios.\n * 1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n * 1.a. the component still exists in the local scope. no need to import. write it from there.\n * 1.b. the component doesn't exist in the local scope. import it.\n * 2. soft-removed and then snapped. It's not in .bitmap now.\n * 3. soft-removed, snapped, exported. it's not in .bitmap now.\n * 4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n * 5. workspace is empty. the soft-removed component is on the remote.\n * returns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from.\n */",
2678
+ "comment": "recover a soft-removed component.\nthere are 4 different scenarios.\n1. a component was just soft-removed, it wasn't snapped yet. so it's now in .bitmap with the \"removed\" aspect entry.\n1.a. the component still exists in the local scope. no need to import. write it from there.\n1.b. the component doesn't exist in the local scope. import it.\n2. soft-removed and then snapped. It's not in .bitmap now.\n3. soft-removed, snapped, exported. it's not in .bitmap now.\n4. a soft-removed components was imported, so it's now in .bitmap without the \"removed\" aspect entry.\n5. workspace is empty. the soft-removed component is on the remote.\nreturns `true` if it was recovered. `false` if the component wasn't soft-removed, so nothing to recover from."
2679
+ },
2680
+ "signature": "(method) RemoveMain.recover(compIdStr: string, options: RecoverOptions): Promise<boolean>",
2681
+ "name": "recover",
2682
+ "params": [
2683
+ {
2684
+ "__schema": "ParameterSchema",
2685
+ "location": {
2686
+ "filePath": "remove.main.runtime.ts",
2687
+ "line": 148,
2688
+ "character": 17
2689
+ },
2690
+ "name": "compIdStr",
2691
+ "type": {
2692
+ "__schema": "KeywordTypeSchema",
2693
+ "location": {
2694
+ "filePath": "remove.main.runtime.ts",
2695
+ "line": 148,
2696
+ "character": 28
2697
+ },
2698
+ "name": "string"
2699
+ },
2700
+ "isOptional": false,
2701
+ "isSpread": false
2702
+ },
2703
+ {
2704
+ "__schema": "ParameterSchema",
2705
+ "location": {
2706
+ "filePath": "remove.main.runtime.ts",
2707
+ "line": 148,
2708
+ "character": 36
2709
+ },
2710
+ "name": "options",
2711
+ "type": {
2712
+ "__schema": "TypeRefSchema",
2713
+ "location": {
2714
+ "filePath": "remove.main.runtime.ts",
2715
+ "line": 148,
2716
+ "character": 45
2717
+ },
2718
+ "name": "RecoverOptions",
2719
+ "internalFilePath": "recover-cmd.ts"
2720
+ },
2721
+ "isOptional": false,
2722
+ "isSpread": false
2723
+ }
2724
+ ],
2725
+ "returnType": {
2726
+ "__schema": "TypeRefSchema",
2727
+ "location": {
2728
+ "filePath": "remove.main.runtime.ts",
2729
+ "line": 148,
2730
+ "character": 62
2731
+ },
2732
+ "name": "Promise",
2733
+ "typeArgs": [
2734
+ {
2735
+ "__schema": "KeywordTypeSchema",
2736
+ "location": {
2737
+ "filePath": "remove.main.runtime.ts",
2738
+ "line": 148,
2739
+ "character": 70
2740
+ },
2741
+ "name": "boolean"
2742
+ }
2743
+ ]
2744
+ },
2745
+ "modifiers": [
2746
+ "async"
2747
+ ]
2748
+ },
2749
+ {
2750
+ "__schema": "FunctionLikeSchema",
2751
+ "location": {
2752
+ "filePath": "remove.main.runtime.ts",
2753
+ "line": 233,
2754
+ "character": 3
2755
+ },
2756
+ "signature": "(method) RemoveMain.getRemoveInfo(component: Component): RemoveInfo",
2757
+ "name": "getRemoveInfo",
2758
+ "params": [
2759
+ {
2760
+ "__schema": "ParameterSchema",
2761
+ "location": {
2762
+ "filePath": "remove.main.runtime.ts",
2763
+ "line": 233,
2764
+ "character": 17
2765
+ },
2766
+ "name": "component",
2767
+ "type": {
2768
+ "__schema": "TypeRefSchema",
2769
+ "location": {
2770
+ "filePath": "remove.main.runtime.ts",
2771
+ "line": 233,
2772
+ "character": 28
2773
+ },
2774
+ "name": "Component",
2775
+ "componentId": {
2776
+ "scope": "teambit.component",
2777
+ "name": "component"
2778
+ }
2779
+ },
2780
+ "isOptional": false,
2781
+ "isSpread": false
2782
+ }
2783
+ ],
2784
+ "returnType": {
2785
+ "__schema": "TypeRefSchema",
2786
+ "location": {
2787
+ "filePath": "remove.main.runtime.ts",
2788
+ "line": 233,
2789
+ "character": 3
2790
+ },
2791
+ "name": "RemoveInfo"
2792
+ },
2793
+ "modifiers": []
2794
+ },
2795
+ {
2796
+ "__schema": "FunctionLikeSchema",
2797
+ "location": {
2798
+ "filePath": "remove.main.runtime.ts",
2799
+ "line": 240,
2800
+ "character": 3
2801
+ },
2802
+ "signature": "(method) RemoveMain.isRemoved(component: Component): boolean",
2803
+ "name": "isRemoved",
2804
+ "params": [
2805
+ {
2806
+ "__schema": "ParameterSchema",
2807
+ "location": {
2808
+ "filePath": "remove.main.runtime.ts",
2809
+ "line": 240,
2810
+ "character": 13
2811
+ },
2812
+ "name": "component",
2813
+ "type": {
2814
+ "__schema": "TypeRefSchema",
2815
+ "location": {
2816
+ "filePath": "remove.main.runtime.ts",
2817
+ "line": 240,
2818
+ "character": 24
2819
+ },
2820
+ "name": "Component",
2821
+ "componentId": {
2822
+ "scope": "teambit.component",
2823
+ "name": "component"
2824
+ }
2825
+ },
2826
+ "isOptional": false,
2827
+ "isSpread": false
2828
+ }
2829
+ ],
2830
+ "returnType": {
2831
+ "__schema": "KeywordTypeSchema",
2832
+ "location": {
2833
+ "filePath": "remove.main.runtime.ts",
2834
+ "line": 240,
2835
+ "character": 36
2836
+ },
2837
+ "name": "boolean"
2838
+ },
2839
+ "modifiers": []
2840
+ },
2841
+ {
2842
+ "__schema": "FunctionLikeSchema",
2843
+ "location": {
2844
+ "filePath": "remove.main.runtime.ts",
2845
+ "line": 247,
2846
+ "character": 3
2847
+ },
2848
+ "doc": {
2849
+ "__schema": "DocSchema",
2850
+ "location": {
2851
+ "filePath": "remove.main.runtime.ts",
2852
+ "line": 244,
2853
+ "character": 3
2854
+ },
2855
+ "raw": "/**\n * performant version of isRemoved() in case the component object is not available and loading it is expensive.\n */",
2856
+ "comment": "performant version of isRemoved() in case the component object is not available and loading it is expensive."
2857
+ },
2858
+ "signature": "(method) RemoveMain.isRemovedByIdWithoutLoadingComponent(componentId: ComponentID): Promise<boolean>",
2859
+ "name": "isRemovedByIdWithoutLoadingComponent",
2860
+ "params": [
2861
+ {
2862
+ "__schema": "ParameterSchema",
2863
+ "location": {
2864
+ "filePath": "remove.main.runtime.ts",
2865
+ "line": 247,
2866
+ "character": 46
2867
+ },
2868
+ "name": "componentId",
2869
+ "type": {
2870
+ "__schema": "TypeRefSchema",
2871
+ "location": {
2872
+ "filePath": "remove.main.runtime.ts",
2873
+ "line": 247,
2874
+ "character": 59
2875
+ },
2876
+ "name": "ComponentID",
2877
+ "componentId": {
2878
+ "scope": "teambit.component",
2879
+ "name": "component-id",
2880
+ "version": "1.2.0"
2881
+ }
2882
+ },
2883
+ "isOptional": false,
2884
+ "isSpread": false
2885
+ }
2886
+ ],
2887
+ "returnType": {
2888
+ "__schema": "TypeRefSchema",
2889
+ "location": {
2890
+ "filePath": "remove.main.runtime.ts",
2891
+ "line": 247,
2892
+ "character": 73
2893
+ },
2894
+ "name": "Promise",
2895
+ "typeArgs": [
2896
+ {
2897
+ "__schema": "KeywordTypeSchema",
2898
+ "location": {
2899
+ "filePath": "remove.main.runtime.ts",
2900
+ "line": 247,
2901
+ "character": 81
2902
+ },
2903
+ "name": "boolean"
2904
+ }
2905
+ ]
2906
+ },
2907
+ "modifiers": [
2908
+ "async"
2909
+ ]
2910
+ },
2911
+ {
2912
+ "__schema": "FunctionLikeSchema",
2913
+ "location": {
2914
+ "filePath": "remove.main.runtime.ts",
2915
+ "line": 262,
2916
+ "character": 3
2917
+ },
2918
+ "doc": {
2919
+ "__schema": "DocSchema",
2920
+ "location": {
2921
+ "filePath": "remove.main.runtime.ts",
2922
+ "line": 259,
2923
+ "character": 3
2924
+ },
2925
+ "raw": "/**\n * get components that were soft-removed and tagged/snapped/merged but not exported yet.\n */",
2926
+ "comment": "get components that were soft-removed and tagged/snapped/merged but not exported yet."
2927
+ },
2928
+ "signature": "(method) RemoveMain.getRemovedStaged(): Promise<ComponentID[]>",
2929
+ "name": "getRemovedStaged",
2930
+ "params": [],
2931
+ "returnType": {
2932
+ "__schema": "TypeRefSchema",
2933
+ "location": {
2934
+ "filePath": "remove.main.runtime.ts",
2935
+ "line": 262,
2936
+ "character": 29
2937
+ },
2938
+ "name": "Promise",
2939
+ "typeArgs": [
2940
+ {
2941
+ "__schema": "TypeArraySchema",
2942
+ "location": {
2943
+ "filePath": "remove.main.runtime.ts",
2944
+ "line": 262,
2945
+ "character": 37
2946
+ },
2947
+ "type": {
2948
+ "__schema": "TypeRefSchema",
2949
+ "location": {
2950
+ "filePath": "remove.main.runtime.ts",
2951
+ "line": 262,
2952
+ "character": 37
2953
+ },
2954
+ "name": "ComponentID",
2955
+ "componentId": {
2956
+ "scope": "teambit.component",
2957
+ "name": "component-id",
2958
+ "version": "1.2.0"
2959
+ }
2960
+ }
2961
+ }
2962
+ ]
2963
+ },
2964
+ "modifiers": [
2965
+ "async"
2966
+ ]
2967
+ },
2968
+ {
2969
+ "__schema": "FunctionLikeSchema",
2970
+ "location": {
2971
+ "filePath": "remove.main.runtime.ts",
2972
+ "line": 266,
2973
+ "character": 3
2974
+ },
2975
+ "signature": "(method) RemoveMain.addRemovedDependenciesIssues(components: Component[]): Promise<void>",
2976
+ "name": "addRemovedDependenciesIssues",
2977
+ "params": [
2978
+ {
2979
+ "__schema": "ParameterSchema",
2980
+ "location": {
2981
+ "filePath": "remove.main.runtime.ts",
2982
+ "line": 266,
2983
+ "character": 38
2984
+ },
2985
+ "name": "components",
2986
+ "type": {
2987
+ "__schema": "TypeArraySchema",
2988
+ "location": {
2989
+ "filePath": "remove.main.runtime.ts",
2990
+ "line": 266,
2991
+ "character": 50
2992
+ },
2993
+ "type": {
2994
+ "__schema": "TypeRefSchema",
2995
+ "location": {
2996
+ "filePath": "remove.main.runtime.ts",
2997
+ "line": 266,
2998
+ "character": 50
2999
+ },
3000
+ "name": "Component",
3001
+ "componentId": {
3002
+ "scope": "teambit.component",
3003
+ "name": "component"
3004
+ }
3005
+ }
3006
+ },
3007
+ "isOptional": false,
3008
+ "isSpread": false
3009
+ }
3010
+ ],
3011
+ "returnType": {
3012
+ "__schema": "InferenceTypeSchema",
3013
+ "location": {
3014
+ "filePath": "remove.main.runtime.ts",
3015
+ "line": 266,
3016
+ "character": 3
3017
+ },
3018
+ "type": "Promise<void>"
3019
+ },
3020
+ "modifiers": [
3021
+ "async"
3022
+ ]
3023
+ },
3024
+ {
3025
+ "__schema": "VariableLikeSchema",
3026
+ "location": {
3027
+ "filePath": "remove.main.runtime.ts",
3028
+ "line": 335,
3029
+ "character": 3
3030
+ },
3031
+ "signature": "(property) RemoveMain.slots: never[]",
3032
+ "name": "slots",
3033
+ "type": {
3034
+ "__schema": "InferenceTypeSchema",
3035
+ "location": {
3036
+ "filePath": "remove.main.runtime.ts",
3037
+ "line": 335,
3038
+ "character": 3
3039
+ },
3040
+ "type": "never[]"
3041
+ },
3042
+ "isOptional": true,
3043
+ "defaultValue": "[]"
3044
+ },
3045
+ {
3046
+ "__schema": "VariableLikeSchema",
3047
+ "location": {
3048
+ "filePath": "remove.main.runtime.ts",
3049
+ "line": 336,
3050
+ "character": 3
3051
+ },
3052
+ "signature": "(property) RemoveMain.dependencies: Aspect[]",
3053
+ "name": "dependencies",
3054
+ "type": {
3055
+ "__schema": "InferenceTypeSchema",
3056
+ "location": {
3057
+ "filePath": "remove.main.runtime.ts",
3058
+ "line": 336,
3059
+ "character": 3
3060
+ },
3061
+ "type": "Aspect[]"
3062
+ },
3063
+ "isOptional": true,
3064
+ "defaultValue": "[\n WorkspaceAspect,\n CLIAspect,\n LoggerAspect,\n ComponentAspect,\n ImporterAspect,\n DependencyResolverAspect,\n IssuesAspect,\n ]"
3065
+ },
3066
+ {
3067
+ "__schema": "VariableLikeSchema",
3068
+ "location": {
3069
+ "filePath": "remove.main.runtime.ts",
3070
+ "line": 345,
3071
+ "character": 3
3072
+ },
3073
+ "signature": "(property) RemoveMain.runtime: RuntimeDefinition",
3074
+ "name": "runtime",
3075
+ "type": {
3076
+ "__schema": "InferenceTypeSchema",
3077
+ "location": {
3078
+ "filePath": "remove.main.runtime.ts",
3079
+ "line": 345,
3080
+ "character": 3
3081
+ },
3082
+ "type": "RuntimeDefinition"
3083
+ },
3084
+ "isOptional": true,
3085
+ "defaultValue": "MainRuntime"
3086
+ },
3087
+ {
3088
+ "__schema": "FunctionLikeSchema",
3089
+ "location": {
3090
+ "filePath": "remove.main.runtime.ts",
3091
+ "line": 347,
3092
+ "character": 3
3093
+ },
3094
+ "signature": "(method) RemoveMain.provider([workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues]: [\n Workspace,\n CLIMain,\n LoggerMain,\n ComponentMain,\n ImporterMain,\n DependencyResolverMain,\n IssuesMain\n]): Promise<RemoveMain>",
3095
+ "name": "provider",
3096
+ "params": [
3097
+ {
3098
+ "__schema": "ParameterSchema",
3099
+ "location": {
3100
+ "filePath": "remove.main.runtime.ts",
3101
+ "line": 347,
3102
+ "character": 25
3103
+ },
3104
+ "name": "[ workspace, cli, loggerMain, componentAspect, importerMain, depResolver, issues ]",
3105
+ "type": {
3106
+ "__schema": "TupleTypeSchema",
3107
+ "location": {
3108
+ "filePath": "remove.main.runtime.ts",
3109
+ "line": 347,
3110
+ "character": 107
3111
+ },
3112
+ "elements": [
3113
+ {
3114
+ "__schema": "TypeRefSchema",
3115
+ "location": {
3116
+ "filePath": "remove.main.runtime.ts",
3117
+ "line": 348,
3118
+ "character": 5
3119
+ },
3120
+ "name": "Workspace",
3121
+ "componentId": {
3122
+ "scope": "teambit.workspace",
3123
+ "name": "workspace"
3124
+ }
3125
+ },
3126
+ {
3127
+ "__schema": "TypeRefSchema",
3128
+ "location": {
3129
+ "filePath": "remove.main.runtime.ts",
3130
+ "line": 349,
3131
+ "character": 5
3132
+ },
3133
+ "name": "CLIMain",
3134
+ "componentId": {
3135
+ "scope": "teambit.harmony",
3136
+ "name": "cli"
3137
+ }
3138
+ },
3139
+ {
3140
+ "__schema": "TypeRefSchema",
3141
+ "location": {
3142
+ "filePath": "remove.main.runtime.ts",
3143
+ "line": 350,
3144
+ "character": 5
3145
+ },
3146
+ "name": "LoggerMain",
3147
+ "componentId": {
3148
+ "scope": "teambit.harmony",
3149
+ "name": "logger"
3150
+ }
3151
+ },
3152
+ {
3153
+ "__schema": "TypeRefSchema",
3154
+ "location": {
3155
+ "filePath": "remove.main.runtime.ts",
3156
+ "line": 351,
3157
+ "character": 5
3158
+ },
3159
+ "name": "ComponentMain",
3160
+ "componentId": {
3161
+ "scope": "teambit.component",
3162
+ "name": "component"
3163
+ }
3164
+ },
3165
+ {
3166
+ "__schema": "TypeRefSchema",
3167
+ "location": {
3168
+ "filePath": "remove.main.runtime.ts",
3169
+ "line": 352,
3170
+ "character": 5
3171
+ },
3172
+ "name": "ImporterMain",
3173
+ "componentId": {
3174
+ "scope": "teambit.scope",
3175
+ "name": "importer"
3176
+ }
3177
+ },
3178
+ {
3179
+ "__schema": "TypeRefSchema",
3180
+ "location": {
3181
+ "filePath": "remove.main.runtime.ts",
3182
+ "line": 353,
3183
+ "character": 5
3184
+ },
3185
+ "name": "DependencyResolverMain",
3186
+ "componentId": {
3187
+ "scope": "teambit.dependencies",
3188
+ "name": "dependency-resolver"
3189
+ }
3190
+ },
3191
+ {
3192
+ "__schema": "TypeRefSchema",
3193
+ "location": {
3194
+ "filePath": "remove.main.runtime.ts",
3195
+ "line": 354,
3196
+ "character": 5
3197
+ },
3198
+ "name": "IssuesMain",
3199
+ "componentId": {
3200
+ "scope": "teambit.component",
3201
+ "name": "issues"
3202
+ }
3203
+ }
3204
+ ]
3205
+ },
3206
+ "isOptional": false,
3207
+ "isSpread": false
3208
+ }
3209
+ ],
3210
+ "returnType": {
3211
+ "__schema": "InferenceTypeSchema",
3212
+ "location": {
3213
+ "filePath": "remove.main.runtime.ts",
3214
+ "line": 347,
3215
+ "character": 3
3216
+ },
3217
+ "type": "Promise<RemoveMain>"
3218
+ },
3219
+ "modifiers": [
3220
+ "static",
3221
+ "async"
3222
+ ]
3223
+ }
3224
+ ],
3225
+ "extendsNodes": [],
3226
+ "implementNodes": []
3227
+ },
3228
+ {
3229
+ "__schema": "UnImplementedSchema",
3230
+ "location": {
3231
+ "filePath": "remove.main.runtime.ts",
3232
+ "line": 371,
3233
+ "character": 16
3234
+ },
3235
+ "name": "RemoveMain",
3236
+ "type": "Identifier"
3237
+ }
3238
+ ],
3239
+ "internals": [
3240
+ {
3241
+ "__schema": "ModuleSchema",
3242
+ "location": {
3243
+ "filePath": "remove.main.runtime.ts",
3244
+ "line": 26,
3245
+ "character": 1
3246
+ },
3247
+ "exports": [
3248
+ {
3249
+ "__schema": "VariableLikeSchema",
3250
+ "location": {
3251
+ "filePath": "remove.main.runtime.ts",
3252
+ "line": 26,
3253
+ "character": 7
3254
+ },
3255
+ "signature": "const BEFORE_REMOVE: \"removing components\"",
3256
+ "name": "BEFORE_REMOVE",
3257
+ "type": {
3258
+ "__schema": "InferenceTypeSchema",
3259
+ "location": {
3260
+ "filePath": "remove.main.runtime.ts",
3261
+ "line": 26,
3262
+ "character": 7
3263
+ },
3264
+ "type": "\"removing components\""
3265
+ },
3266
+ "isOptional": false,
3267
+ "defaultValue": "'removing components'"
3268
+ }
3269
+ ],
3270
+ "internals": []
3271
+ },
3272
+ {
3273
+ "__schema": "UnImplementedSchema",
3274
+ "location": {
3275
+ "filePath": "remove.main.runtime.ts",
3276
+ "line": 369,
3277
+ "character": 1
3278
+ },
3279
+ "name": "RemoveAspect.addRuntime(RemoveMain);",
3280
+ "type": "ExpressionStatement"
3281
+ }
3282
+ ]
3283
+ },
3284
+ {
3285
+ "__schema": "ModuleSchema",
3286
+ "location": {
3287
+ "filePath": "removed-local-objects.ts",
3288
+ "line": 1,
3289
+ "character": 1
3290
+ },
3291
+ "exports": [
3292
+ {
3293
+ "__schema": "ClassSchema",
3294
+ "location": {
3295
+ "filePath": "removed-local-objects.ts",
3296
+ "line": 4,
3297
+ "character": 1
3298
+ },
3299
+ "signature": "class RemovedLocalObjects",
3300
+ "name": "RemovedLocalObjects",
3301
+ "members": [
3302
+ {
3303
+ "__schema": "VariableLikeSchema",
3304
+ "location": {
3305
+ "filePath": "removed-local-objects.ts",
3306
+ "line": 5,
3307
+ "character": 3
3308
+ },
3309
+ "signature": "(property) RemovedLocalObjects.modifiedComponents: ComponentIdList",
3310
+ "name": "modifiedComponents",
3311
+ "type": {
3312
+ "__schema": "TypeRefSchema",
3313
+ "location": {
3314
+ "filePath": "removed-local-objects.ts",
3315
+ "line": 5,
3316
+ "character": 3
3317
+ },
3318
+ "name": "ComponentIdList",
3319
+ "componentId": {
3320
+ "scope": "teambit.component",
3321
+ "name": "component-id",
3322
+ "version": "1.2.0"
3323
+ }
3324
+ },
3325
+ "isOptional": false
3326
+ },
3327
+ {
3328
+ "__schema": "ConstructorSchema",
3329
+ "location": {
3330
+ "filePath": "removed-local-objects.ts",
3331
+ "line": 6,
3332
+ "character": 3
3333
+ },
3334
+ "signature": "constructor RemovedLocalObjects(removedComponentIds?: ComponentIdList, missingComponents?: ComponentIdList, modifiedComponents?: ComponentIdList, dependentBits?: Record<string, any>, removedFromLane?: ComponentIdList): RemovedLocalObjects",
3335
+ "name": "constructor",
3336
+ "params": [
3337
+ {
3338
+ "__schema": "ParameterSchema",
3339
+ "location": {
3340
+ "filePath": "removed-local-objects.ts",
3341
+ "line": 7,
3342
+ "character": 5
3343
+ },
3344
+ "name": "removedComponentIds",
3345
+ "type": {
3346
+ "__schema": "TypeRefSchema",
3347
+ "location": {
3348
+ "filePath": "removed-local-objects.ts",
3349
+ "line": 7,
3350
+ "character": 27
3351
+ },
3352
+ "name": "ComponentIdList",
3353
+ "componentId": {
3354
+ "scope": "teambit.component",
3355
+ "name": "component-id",
3356
+ "version": "1.2.0"
3357
+ }
3358
+ },
3359
+ "isOptional": true,
3360
+ "isSpread": false
3361
+ },
3362
+ {
3363
+ "__schema": "ParameterSchema",
3364
+ "location": {
3365
+ "filePath": "removed-local-objects.ts",
3366
+ "line": 8,
3367
+ "character": 5
3368
+ },
3369
+ "name": "missingComponents",
3370
+ "type": {
3371
+ "__schema": "TypeRefSchema",
3372
+ "location": {
3373
+ "filePath": "removed-local-objects.ts",
3374
+ "line": 8,
3375
+ "character": 25
3376
+ },
3377
+ "name": "ComponentIdList",
3378
+ "componentId": {
3379
+ "scope": "teambit.component",
3380
+ "name": "component-id",
3381
+ "version": "1.2.0"
3382
+ }
3383
+ },
3384
+ "isOptional": true,
3385
+ "isSpread": false
3386
+ },
3387
+ {
3388
+ "__schema": "ParameterSchema",
3389
+ "location": {
3390
+ "filePath": "removed-local-objects.ts",
3391
+ "line": 9,
3392
+ "character": 5
3393
+ },
3394
+ "name": "modifiedComponents",
3395
+ "type": {
3396
+ "__schema": "TypeRefSchema",
3397
+ "location": {
3398
+ "filePath": "removed-local-objects.ts",
3399
+ "line": 9,
3400
+ "character": 26
3401
+ },
3402
+ "name": "ComponentIdList",
3403
+ "componentId": {
3404
+ "scope": "teambit.component",
3405
+ "name": "component-id",
3406
+ "version": "1.2.0"
3407
+ }
3408
+ },
3409
+ "isOptional": true,
3410
+ "isSpread": false
3411
+ },
3412
+ {
3413
+ "__schema": "ParameterSchema",
3414
+ "location": {
3415
+ "filePath": "removed-local-objects.ts",
3416
+ "line": 10,
3417
+ "character": 5
3418
+ },
3419
+ "name": "dependentBits",
3420
+ "type": {
3421
+ "__schema": "TypeRefSchema",
3422
+ "location": {
3423
+ "filePath": "removed-local-objects.ts",
3424
+ "line": 10,
3425
+ "character": 21
3426
+ },
3427
+ "name": "Record",
3428
+ "typeArgs": [
3429
+ {
3430
+ "__schema": "KeywordTypeSchema",
3431
+ "location": {
3432
+ "filePath": "removed-local-objects.ts",
3433
+ "line": 10,
3434
+ "character": 28
3435
+ },
3436
+ "name": "string"
3437
+ },
3438
+ {
3439
+ "__schema": "KeywordTypeSchema",
3440
+ "location": {
3441
+ "filePath": "removed-local-objects.ts",
3442
+ "line": 10,
3443
+ "character": 36
3444
+ },
3445
+ "name": "any"
3446
+ }
3447
+ ]
3448
+ },
3449
+ "isOptional": true,
3450
+ "isSpread": false
3451
+ },
3452
+ {
3453
+ "__schema": "ParameterSchema",
3454
+ "location": {
3455
+ "filePath": "removed-local-objects.ts",
3456
+ "line": 11,
3457
+ "character": 5
3458
+ },
3459
+ "name": "removedFromLane",
3460
+ "type": {
3461
+ "__schema": "TypeRefSchema",
3462
+ "location": {
3463
+ "filePath": "removed-local-objects.ts",
3464
+ "line": 11,
3465
+ "character": 23
3466
+ },
3467
+ "name": "ComponentIdList",
3468
+ "componentId": {
3469
+ "scope": "teambit.component",
3470
+ "name": "component-id",
3471
+ "version": "1.2.0"
3472
+ }
3473
+ },
3474
+ "isOptional": true,
3475
+ "isSpread": false
3476
+ }
3477
+ ],
3478
+ "returnType": {
3479
+ "__schema": "ThisTypeSchema",
3480
+ "location": {
3481
+ "filePath": "removed-local-objects.ts",
3482
+ "line": 4,
3483
+ "character": 1
3484
+ },
3485
+ "name": "RemovedLocalObjects"
3486
+ },
3487
+ "modifiers": []
3488
+ }
3489
+ ],
3490
+ "extendsNodes": [
3491
+ {
3492
+ "__schema": "ExpressionWithTypeArgumentsSchema",
3493
+ "location": {
3494
+ "filePath": "removed-local-objects.ts",
3495
+ "line": 4,
3496
+ "character": 42
3497
+ },
3498
+ "name": "extends RemovedObjects",
3499
+ "typeArgs": [],
3500
+ "expression": {
3501
+ "__schema": "TypeRefSchema",
3502
+ "location": {
3503
+ "filePath": "removed-local-objects.ts",
3504
+ "line": 4,
3505
+ "character": 42
3506
+ },
3507
+ "name": "RemovedObjects",
3508
+ "componentId": {
3509
+ "_legacy": {
3510
+ "scope": "teambit.component",
3511
+ "name": "remove",
3512
+ "version": "1.0.190"
3513
+ },
3514
+ "_scope": "teambit.component"
3515
+ }
3516
+ }
3517
+ }
3518
+ ],
3519
+ "implementNodes": []
3520
+ }
3521
+ ],
3522
+ "internals": []
3523
+ },
3524
+ {
3525
+ "__schema": "ModuleSchema",
3526
+ "location": {
3527
+ "filePath": "remove.aspect.ts",
3528
+ "line": 1,
3529
+ "character": 1
3530
+ },
3531
+ "exports": [
3532
+ {
3533
+ "__schema": "VariableLikeSchema",
3534
+ "location": {
3535
+ "filePath": "remove.aspect.ts",
3536
+ "line": 3,
3537
+ "character": 14
3538
+ },
3539
+ "signature": "const RemoveAspect: Aspect",
3540
+ "name": "RemoveAspect",
3541
+ "type": {
3542
+ "__schema": "TypeRefSchema",
3543
+ "location": {
3544
+ "filePath": "remove.aspect.ts",
3545
+ "line": 3,
3546
+ "character": 14
3547
+ },
3548
+ "name": "Aspect",
3549
+ "componentId": {
3550
+ "scope": "teambit.harmony",
3551
+ "name": "harmony",
3552
+ "version": "0.4.6"
3553
+ }
3554
+ },
3555
+ "isOptional": false,
3556
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/remove',\n})"
3557
+ }
3558
+ ],
3559
+ "internals": []
3560
+ }
3561
+ ],
3562
+ "componentId": {
3563
+ "scope": "teambit.component",
3564
+ "name": "remove",
3565
+ "version": "1.0.190"
3566
+ },
3567
+ "taggedModuleExports": []
3568
+ }