@teambit/new-component-helper 1.0.510 → 1.0.511

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.
@@ -1,2648 +0,0 @@
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": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 3,
21
- "character": 15
22
- },
23
- "signature": "class NewComponentHelperMain",
24
- "name": "NewComponentHelperMain",
25
- "exportNode": {
26
- "__schema": "ClassSchema",
27
- "location": {
28
- "filePath": "new-component-helper.main.runtime.ts",
29
- "line": 24,
30
- "character": 1
31
- },
32
- "signature": "class NewComponentHelperMain",
33
- "name": "NewComponentHelperMain",
34
- "members": [
35
- {
36
- "__schema": "ConstructorSchema",
37
- "location": {
38
- "filePath": "new-component-helper.main.runtime.ts",
39
- "line": 25,
40
- "character": 3
41
- },
42
- "signature": "constructor NewComponentHelperMain(workspace: Workspace, harmony: Harmony, tracker: TrackerMain): NewComponentHelperMain",
43
- "name": "constructor",
44
- "params": [
45
- {
46
- "__schema": "ParameterSchema",
47
- "location": {
48
- "filePath": "new-component-helper.main.runtime.ts",
49
- "line": 26,
50
- "character": 5
51
- },
52
- "name": "workspace",
53
- "type": {
54
- "__schema": "TypeRefSchema",
55
- "location": {
56
- "filePath": "new-component-helper.main.runtime.ts",
57
- "line": 26,
58
- "character": 24
59
- },
60
- "name": "Workspace"
61
- },
62
- "isOptional": false,
63
- "isSpread": false
64
- },
65
- {
66
- "__schema": "ParameterSchema",
67
- "location": {
68
- "filePath": "new-component-helper.main.runtime.ts",
69
- "line": 27,
70
- "character": 5
71
- },
72
- "name": "harmony",
73
- "type": {
74
- "__schema": "TypeRefSchema",
75
- "location": {
76
- "filePath": "new-component-helper.main.runtime.ts",
77
- "line": 27,
78
- "character": 22
79
- },
80
- "name": "Harmony"
81
- },
82
- "isOptional": false,
83
- "isSpread": false
84
- },
85
- {
86
- "__schema": "ParameterSchema",
87
- "location": {
88
- "filePath": "new-component-helper.main.runtime.ts",
89
- "line": 28,
90
- "character": 5
91
- },
92
- "name": "tracker",
93
- "type": {
94
- "__schema": "TypeRefSchema",
95
- "location": {
96
- "filePath": "new-component-helper.main.runtime.ts",
97
- "line": 28,
98
- "character": 22
99
- },
100
- "name": "TrackerMain"
101
- },
102
- "isOptional": false,
103
- "isSpread": false
104
- }
105
- ],
106
- "returnType": {
107
- "__schema": "ThisTypeSchema",
108
- "location": {
109
- "filePath": "new-component-helper.main.runtime.ts",
110
- "line": 24,
111
- "character": 1
112
- },
113
- "name": "NewComponentHelperMain"
114
- },
115
- "modifiers": []
116
- },
117
- {
118
- "__schema": "FunctionLikeSchema",
119
- "location": {
120
- "filePath": "new-component-helper.main.runtime.ts",
121
- "line": 34,
122
- "character": 3
123
- },
124
- "doc": {
125
- "__schema": "DocSchema",
126
- "location": {
127
- "filePath": "new-component-helper.main.runtime.ts",
128
- "line": 30,
129
- "character": 3
130
- },
131
- "raw": "/**\n * when creating/forking a component, the user provides the new name and optionally the scope/namespace.\n * from this user input, create a ComponentID.\n */",
132
- "comment": "when creating/forking a component, the user provides the new name and optionally the scope/namespace.\nfrom this user input, create a ComponentID.",
133
- "tags": []
134
- },
135
- "signature": "(method) NewComponentHelperMain.getNewComponentId(name: string, namespace?: string, scope?: string): ComponentID",
136
- "name": "getNewComponentId",
137
- "params": [
138
- {
139
- "__schema": "ParameterSchema",
140
- "location": {
141
- "filePath": "new-component-helper.main.runtime.ts",
142
- "line": 34,
143
- "character": 21
144
- },
145
- "name": "name",
146
- "type": {
147
- "__schema": "KeywordTypeSchema",
148
- "location": {
149
- "filePath": "new-component-helper.main.runtime.ts",
150
- "line": 34,
151
- "character": 27
152
- },
153
- "name": "string"
154
- },
155
- "isOptional": false,
156
- "isSpread": false
157
- },
158
- {
159
- "__schema": "ParameterSchema",
160
- "location": {
161
- "filePath": "new-component-helper.main.runtime.ts",
162
- "line": 34,
163
- "character": 35
164
- },
165
- "name": "namespace",
166
- "type": {
167
- "__schema": "KeywordTypeSchema",
168
- "location": {
169
- "filePath": "new-component-helper.main.runtime.ts",
170
- "line": 34,
171
- "character": 47
172
- },
173
- "name": "string"
174
- },
175
- "isOptional": true,
176
- "isSpread": false
177
- },
178
- {
179
- "__schema": "ParameterSchema",
180
- "location": {
181
- "filePath": "new-component-helper.main.runtime.ts",
182
- "line": 34,
183
- "character": 55
184
- },
185
- "name": "scope",
186
- "type": {
187
- "__schema": "KeywordTypeSchema",
188
- "location": {
189
- "filePath": "new-component-helper.main.runtime.ts",
190
- "line": 34,
191
- "character": 63
192
- },
193
- "name": "string"
194
- },
195
- "isOptional": true,
196
- "isSpread": false
197
- }
198
- ],
199
- "returnType": {
200
- "__schema": "TypeRefSchema",
201
- "location": {
202
- "filePath": "new-component-helper.main.runtime.ts",
203
- "line": 34,
204
- "character": 3
205
- },
206
- "name": "ComponentID",
207
- "componentId": {
208
- "scope": "teambit.component",
209
- "name": "component-id",
210
- "version": "1.2.2"
211
- }
212
- },
213
- "modifiers": []
214
- },
215
- {
216
- "__schema": "FunctionLikeSchema",
217
- "location": {
218
- "filePath": "new-component-helper.main.runtime.ts",
219
- "line": 50,
220
- "character": 3
221
- },
222
- "doc": {
223
- "__schema": "DocSchema",
224
- "location": {
225
- "filePath": "new-component-helper.main.runtime.ts",
226
- "line": 45,
227
- "character": 3
228
- },
229
- "raw": "/**\n * when creating/forking a component, the user may or may not provide a path.\n * if not provided, generate the path based on the component-id.\n * the component will be written to that path.\n */",
230
- "comment": "when creating/forking a component, the user may or may not provide a path.\nif not provided, generate the path based on the component-id.\nthe component will be written to that path.",
231
- "tags": []
232
- },
233
- "signature": "(method) NewComponentHelperMain.getNewComponentPath(componentId: ComponentID, { pathFromUser, componentsToCreate, incrementPathIfConflicted, }?: {\n pathFromUser?: string;\n componentsToCreate?: number;\n incrementPathIfConflicted?: boolean;\n}): PathLinuxRelative",
234
- "name": "getNewComponentPath",
235
- "params": [
236
- {
237
- "__schema": "ParameterSchema",
238
- "location": {
239
- "filePath": "new-component-helper.main.runtime.ts",
240
- "line": 51,
241
- "character": 5
242
- },
243
- "name": "componentId",
244
- "type": {
245
- "__schema": "TypeRefSchema",
246
- "location": {
247
- "filePath": "new-component-helper.main.runtime.ts",
248
- "line": 51,
249
- "character": 18
250
- },
251
- "name": "ComponentID"
252
- },
253
- "isOptional": false,
254
- "isSpread": false
255
- },
256
- {
257
- "__schema": "ParameterSchema",
258
- "location": {
259
- "filePath": "new-component-helper.main.runtime.ts",
260
- "line": 52,
261
- "character": 5
262
- },
263
- "name": "{ pathFromUser, componentsToCreate, incrementPathIfConflicted }",
264
- "type": {
265
- "__schema": "TypeLiteralSchema",
266
- "location": {
267
- "filePath": "new-component-helper.main.runtime.ts",
268
- "line": 56,
269
- "character": 8
270
- },
271
- "members": [
272
- {
273
- "__schema": "VariableLikeSchema",
274
- "location": {
275
- "filePath": "new-component-helper.main.runtime.ts",
276
- "line": 56,
277
- "character": 10
278
- },
279
- "signature": "(property) pathFromUser?: string | undefined",
280
- "name": "pathFromUser",
281
- "type": {
282
- "__schema": "KeywordTypeSchema",
283
- "location": {
284
- "filePath": "new-component-helper.main.runtime.ts",
285
- "line": 56,
286
- "character": 25
287
- },
288
- "name": "string"
289
- },
290
- "isOptional": true
291
- },
292
- {
293
- "__schema": "VariableLikeSchema",
294
- "location": {
295
- "filePath": "new-component-helper.main.runtime.ts",
296
- "line": 56,
297
- "character": 33
298
- },
299
- "signature": "(property) componentsToCreate?: number | undefined",
300
- "name": "componentsToCreate",
301
- "type": {
302
- "__schema": "KeywordTypeSchema",
303
- "location": {
304
- "filePath": "new-component-helper.main.runtime.ts",
305
- "line": 56,
306
- "character": 54
307
- },
308
- "name": "number"
309
- },
310
- "isOptional": true
311
- },
312
- {
313
- "__schema": "VariableLikeSchema",
314
- "location": {
315
- "filePath": "new-component-helper.main.runtime.ts",
316
- "line": 56,
317
- "character": 62
318
- },
319
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
320
- "name": "incrementPathIfConflicted",
321
- "type": {
322
- "__schema": "KeywordTypeSchema",
323
- "location": {
324
- "filePath": "new-component-helper.main.runtime.ts",
325
- "line": 56,
326
- "character": 90
327
- },
328
- "name": "boolean"
329
- },
330
- "isOptional": true
331
- }
332
- ]
333
- },
334
- "isOptional": true,
335
- "defaultValue": "{}",
336
- "objectBindingNodes": [
337
- {
338
- "__schema": "VariableLikeSchema",
339
- "location": {
340
- "filePath": "new-component-helper.main.runtime.ts",
341
- "line": 56,
342
- "character": 10
343
- },
344
- "signature": "(property) pathFromUser?: string | undefined",
345
- "name": "pathFromUser",
346
- "type": {
347
- "__schema": "KeywordTypeSchema",
348
- "location": {
349
- "filePath": "new-component-helper.main.runtime.ts",
350
- "line": 56,
351
- "character": 25
352
- },
353
- "name": "string"
354
- },
355
- "isOptional": true
356
- },
357
- {
358
- "__schema": "VariableLikeSchema",
359
- "location": {
360
- "filePath": "new-component-helper.main.runtime.ts",
361
- "line": 56,
362
- "character": 33
363
- },
364
- "signature": "(property) componentsToCreate?: number | undefined",
365
- "name": "componentsToCreate",
366
- "type": {
367
- "__schema": "KeywordTypeSchema",
368
- "location": {
369
- "filePath": "new-component-helper.main.runtime.ts",
370
- "line": 56,
371
- "character": 54
372
- },
373
- "name": "number"
374
- },
375
- "isOptional": true
376
- },
377
- {
378
- "__schema": "VariableLikeSchema",
379
- "location": {
380
- "filePath": "new-component-helper.main.runtime.ts",
381
- "line": 56,
382
- "character": 62
383
- },
384
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
385
- "name": "incrementPathIfConflicted",
386
- "type": {
387
- "__schema": "KeywordTypeSchema",
388
- "location": {
389
- "filePath": "new-component-helper.main.runtime.ts",
390
- "line": 56,
391
- "character": 90
392
- },
393
- "name": "boolean"
394
- },
395
- "isOptional": true
396
- }
397
- ],
398
- "isSpread": false
399
- }
400
- ],
401
- "returnType": {
402
- "__schema": "TypeRefSchema",
403
- "location": {
404
- "filePath": "new-component-helper.main.runtime.ts",
405
- "line": 50,
406
- "character": 3
407
- },
408
- "name": "PathLinuxRelative",
409
- "componentId": {
410
- "scope": "teambit.toolbox",
411
- "name": "path/path",
412
- "version": "0.0.5"
413
- }
414
- },
415
- "modifiers": []
416
- },
417
- {
418
- "__schema": "FunctionLikeSchema",
419
- "location": {
420
- "filePath": "new-component-helper.main.runtime.ts",
421
- "line": 92,
422
- "character": 3
423
- },
424
- "signature": "(method) NewComponentHelperMain.writeAndAddNewComp(comp: Component, targetId: ComponentID, options?: {\n path?: string;\n scope?: string;\n env?: string;\n incrementPathIfConflicted?: boolean;\n compile?: boolean;\n loadOptions?: WorkspaceComponentLoadOptions;\n}, config?: {\n [aspectName: string]: any;\n} | undefined): Promise<void>",
425
- "name": "writeAndAddNewComp",
426
- "params": [
427
- {
428
- "__schema": "ParameterSchema",
429
- "location": {
430
- "filePath": "new-component-helper.main.runtime.ts",
431
- "line": 93,
432
- "character": 5
433
- },
434
- "name": "comp",
435
- "type": {
436
- "__schema": "TypeRefSchema",
437
- "location": {
438
- "filePath": "new-component-helper.main.runtime.ts",
439
- "line": 93,
440
- "character": 11
441
- },
442
- "name": "Component"
443
- },
444
- "isOptional": false,
445
- "isSpread": false
446
- },
447
- {
448
- "__schema": "ParameterSchema",
449
- "location": {
450
- "filePath": "new-component-helper.main.runtime.ts",
451
- "line": 94,
452
- "character": 5
453
- },
454
- "name": "targetId",
455
- "type": {
456
- "__schema": "TypeRefSchema",
457
- "location": {
458
- "filePath": "new-component-helper.main.runtime.ts",
459
- "line": 94,
460
- "character": 15
461
- },
462
- "name": "ComponentID"
463
- },
464
- "isOptional": false,
465
- "isSpread": false
466
- },
467
- {
468
- "__schema": "ParameterSchema",
469
- "location": {
470
- "filePath": "new-component-helper.main.runtime.ts",
471
- "line": 95,
472
- "character": 5
473
- },
474
- "name": "options",
475
- "type": {
476
- "__schema": "TypeLiteralSchema",
477
- "location": {
478
- "filePath": "new-component-helper.main.runtime.ts",
479
- "line": 95,
480
- "character": 15
481
- },
482
- "members": [
483
- {
484
- "__schema": "VariableLikeSchema",
485
- "location": {
486
- "filePath": "new-component-helper.main.runtime.ts",
487
- "line": 96,
488
- "character": 7
489
- },
490
- "signature": "(property) path?: string | undefined",
491
- "name": "path",
492
- "type": {
493
- "__schema": "KeywordTypeSchema",
494
- "location": {
495
- "filePath": "new-component-helper.main.runtime.ts",
496
- "line": 96,
497
- "character": 14
498
- },
499
- "name": "string"
500
- },
501
- "isOptional": true
502
- },
503
- {
504
- "__schema": "VariableLikeSchema",
505
- "location": {
506
- "filePath": "new-component-helper.main.runtime.ts",
507
- "line": 97,
508
- "character": 7
509
- },
510
- "signature": "(property) scope?: string | undefined",
511
- "name": "scope",
512
- "type": {
513
- "__schema": "KeywordTypeSchema",
514
- "location": {
515
- "filePath": "new-component-helper.main.runtime.ts",
516
- "line": 97,
517
- "character": 15
518
- },
519
- "name": "string"
520
- },
521
- "isOptional": true
522
- },
523
- {
524
- "__schema": "VariableLikeSchema",
525
- "location": {
526
- "filePath": "new-component-helper.main.runtime.ts",
527
- "line": 98,
528
- "character": 7
529
- },
530
- "signature": "(property) env?: string | undefined",
531
- "name": "env",
532
- "type": {
533
- "__schema": "KeywordTypeSchema",
534
- "location": {
535
- "filePath": "new-component-helper.main.runtime.ts",
536
- "line": 98,
537
- "character": 13
538
- },
539
- "name": "string"
540
- },
541
- "isOptional": true
542
- },
543
- {
544
- "__schema": "VariableLikeSchema",
545
- "location": {
546
- "filePath": "new-component-helper.main.runtime.ts",
547
- "line": 99,
548
- "character": 7
549
- },
550
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
551
- "name": "incrementPathIfConflicted",
552
- "type": {
553
- "__schema": "KeywordTypeSchema",
554
- "location": {
555
- "filePath": "new-component-helper.main.runtime.ts",
556
- "line": 99,
557
- "character": 35
558
- },
559
- "name": "boolean"
560
- },
561
- "isOptional": true
562
- },
563
- {
564
- "__schema": "VariableLikeSchema",
565
- "location": {
566
- "filePath": "new-component-helper.main.runtime.ts",
567
- "line": 100,
568
- "character": 7
569
- },
570
- "signature": "(property) compile?: boolean | undefined",
571
- "name": "compile",
572
- "type": {
573
- "__schema": "KeywordTypeSchema",
574
- "location": {
575
- "filePath": "new-component-helper.main.runtime.ts",
576
- "line": 100,
577
- "character": 17
578
- },
579
- "name": "boolean"
580
- },
581
- "isOptional": true
582
- },
583
- {
584
- "__schema": "VariableLikeSchema",
585
- "location": {
586
- "filePath": "new-component-helper.main.runtime.ts",
587
- "line": 101,
588
- "character": 7
589
- },
590
- "signature": "(property) loadOptions?: WorkspaceComponentLoadOptions | undefined",
591
- "name": "loadOptions",
592
- "type": {
593
- "__schema": "TypeRefSchema",
594
- "location": {
595
- "filePath": "new-component-helper.main.runtime.ts",
596
- "line": 101,
597
- "character": 21
598
- },
599
- "name": "WorkspaceComponentLoadOptions"
600
- },
601
- "isOptional": true
602
- }
603
- ]
604
- },
605
- "isOptional": true,
606
- "isSpread": false
607
- },
608
- {
609
- "__schema": "ParameterSchema",
610
- "location": {
611
- "filePath": "new-component-helper.main.runtime.ts",
612
- "line": 103,
613
- "character": 5
614
- },
615
- "name": "config",
616
- "type": {
617
- "__schema": "TypeLiteralSchema",
618
- "location": {
619
- "filePath": "new-component-helper.main.runtime.ts",
620
- "line": 103,
621
- "character": 14
622
- },
623
- "members": [
624
- {
625
- "__schema": "IndexSignatureSchema",
626
- "location": {
627
- "filePath": "new-component-helper.main.runtime.ts",
628
- "line": 103,
629
- "character": 16
630
- },
631
- "keyType": {
632
- "__schema": "ParameterSchema",
633
- "location": {
634
- "filePath": "new-component-helper.main.runtime.ts",
635
- "line": 103,
636
- "character": 17
637
- },
638
- "name": "aspectName",
639
- "type": {
640
- "__schema": "KeywordTypeSchema",
641
- "location": {
642
- "filePath": "new-component-helper.main.runtime.ts",
643
- "line": 103,
644
- "character": 29
645
- },
646
- "name": "string"
647
- },
648
- "isOptional": false,
649
- "isSpread": false
650
- },
651
- "valueType": {
652
- "__schema": "KeywordTypeSchema",
653
- "location": {
654
- "filePath": "new-component-helper.main.runtime.ts",
655
- "line": 103,
656
- "character": 38
657
- },
658
- "name": "any"
659
- }
660
- }
661
- ]
662
- },
663
- "isOptional": true,
664
- "isSpread": false
665
- }
666
- ],
667
- "returnType": {
668
- "__schema": "InferenceTypeSchema",
669
- "location": {
670
- "filePath": "new-component-helper.main.runtime.ts",
671
- "line": 92,
672
- "character": 3
673
- },
674
- "type": "Promise<void>"
675
- },
676
- "modifiers": [
677
- "async"
678
- ]
679
- },
680
- {
681
- "__schema": "FunctionLikeSchema",
682
- "location": {
683
- "filePath": "new-component-helper.main.runtime.ts",
684
- "line": 140,
685
- "character": 3
686
- },
687
- "signature": "(method) NewComponentHelperMain.writeAndAddNewCompFromFiles(files: File[], targetId: ComponentID, mainFile: string, options?: {\n path?: string;\n incrementPathIfConflicted?: boolean;\n}, config?: {\n [aspectName: string]: any;\n} | undefined): Promise<void>",
688
- "name": "writeAndAddNewCompFromFiles",
689
- "params": [
690
- {
691
- "__schema": "ParameterSchema",
692
- "location": {
693
- "filePath": "new-component-helper.main.runtime.ts",
694
- "line": 141,
695
- "character": 5
696
- },
697
- "name": "files",
698
- "type": {
699
- "__schema": "TypeArraySchema",
700
- "location": {
701
- "filePath": "new-component-helper.main.runtime.ts",
702
- "line": 141,
703
- "character": 12
704
- },
705
- "type": {
706
- "__schema": "TypeRefSchema",
707
- "location": {
708
- "filePath": "new-component-helper.main.runtime.ts",
709
- "line": 141,
710
- "character": 12
711
- },
712
- "name": "File"
713
- }
714
- },
715
- "isOptional": false,
716
- "isSpread": false
717
- },
718
- {
719
- "__schema": "ParameterSchema",
720
- "location": {
721
- "filePath": "new-component-helper.main.runtime.ts",
722
- "line": 142,
723
- "character": 5
724
- },
725
- "name": "targetId",
726
- "type": {
727
- "__schema": "TypeRefSchema",
728
- "location": {
729
- "filePath": "new-component-helper.main.runtime.ts",
730
- "line": 142,
731
- "character": 15
732
- },
733
- "name": "ComponentID"
734
- },
735
- "isOptional": false,
736
- "isSpread": false
737
- },
738
- {
739
- "__schema": "ParameterSchema",
740
- "location": {
741
- "filePath": "new-component-helper.main.runtime.ts",
742
- "line": 143,
743
- "character": 5
744
- },
745
- "name": "mainFile",
746
- "type": {
747
- "__schema": "KeywordTypeSchema",
748
- "location": {
749
- "filePath": "new-component-helper.main.runtime.ts",
750
- "line": 143,
751
- "character": 15
752
- },
753
- "name": "string"
754
- },
755
- "isOptional": false,
756
- "isSpread": false
757
- },
758
- {
759
- "__schema": "ParameterSchema",
760
- "location": {
761
- "filePath": "new-component-helper.main.runtime.ts",
762
- "line": 144,
763
- "character": 5
764
- },
765
- "name": "options",
766
- "type": {
767
- "__schema": "TypeLiteralSchema",
768
- "location": {
769
- "filePath": "new-component-helper.main.runtime.ts",
770
- "line": 144,
771
- "character": 15
772
- },
773
- "members": [
774
- {
775
- "__schema": "VariableLikeSchema",
776
- "location": {
777
- "filePath": "new-component-helper.main.runtime.ts",
778
- "line": 144,
779
- "character": 17
780
- },
781
- "signature": "(property) path?: string | undefined",
782
- "name": "path",
783
- "type": {
784
- "__schema": "KeywordTypeSchema",
785
- "location": {
786
- "filePath": "new-component-helper.main.runtime.ts",
787
- "line": 144,
788
- "character": 24
789
- },
790
- "name": "string"
791
- },
792
- "isOptional": true
793
- },
794
- {
795
- "__schema": "VariableLikeSchema",
796
- "location": {
797
- "filePath": "new-component-helper.main.runtime.ts",
798
- "line": 144,
799
- "character": 32
800
- },
801
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
802
- "name": "incrementPathIfConflicted",
803
- "type": {
804
- "__schema": "KeywordTypeSchema",
805
- "location": {
806
- "filePath": "new-component-helper.main.runtime.ts",
807
- "line": 144,
808
- "character": 60
809
- },
810
- "name": "boolean"
811
- },
812
- "isOptional": true
813
- }
814
- ]
815
- },
816
- "isOptional": true,
817
- "isSpread": false
818
- },
819
- {
820
- "__schema": "ParameterSchema",
821
- "location": {
822
- "filePath": "new-component-helper.main.runtime.ts",
823
- "line": 145,
824
- "character": 5
825
- },
826
- "name": "config",
827
- "type": {
828
- "__schema": "TypeLiteralSchema",
829
- "location": {
830
- "filePath": "new-component-helper.main.runtime.ts",
831
- "line": 145,
832
- "character": 14
833
- },
834
- "members": [
835
- {
836
- "__schema": "IndexSignatureSchema",
837
- "location": {
838
- "filePath": "new-component-helper.main.runtime.ts",
839
- "line": 145,
840
- "character": 16
841
- },
842
- "keyType": {
843
- "__schema": "ParameterSchema",
844
- "location": {
845
- "filePath": "new-component-helper.main.runtime.ts",
846
- "line": 145,
847
- "character": 17
848
- },
849
- "name": "aspectName",
850
- "type": {
851
- "__schema": "KeywordTypeSchema",
852
- "location": {
853
- "filePath": "new-component-helper.main.runtime.ts",
854
- "line": 145,
855
- "character": 29
856
- },
857
- "name": "string"
858
- },
859
- "isOptional": false,
860
- "isSpread": false
861
- },
862
- "valueType": {
863
- "__schema": "KeywordTypeSchema",
864
- "location": {
865
- "filePath": "new-component-helper.main.runtime.ts",
866
- "line": 145,
867
- "character": 38
868
- },
869
- "name": "any"
870
- }
871
- }
872
- ]
873
- },
874
- "isOptional": true,
875
- "isSpread": false
876
- }
877
- ],
878
- "returnType": {
879
- "__schema": "InferenceTypeSchema",
880
- "location": {
881
- "filePath": "new-component-helper.main.runtime.ts",
882
- "line": 140,
883
- "character": 3
884
- },
885
- "type": "Promise<void>"
886
- },
887
- "modifiers": [
888
- "async"
889
- ]
890
- },
891
- {
892
- "__schema": "FunctionLikeSchema",
893
- "location": {
894
- "filePath": "new-component-helper.main.runtime.ts",
895
- "line": 175,
896
- "character": 3
897
- },
898
- "doc": {
899
- "__schema": "DocSchema",
900
- "location": {
901
- "filePath": "new-component-helper.main.runtime.ts",
902
- "line": 172,
903
- "character": 3
904
- },
905
- "raw": "/**\n * writes component files into the specified directory.\n */",
906
- "comment": "writes component files into the specified directory.",
907
- "tags": []
908
- },
909
- "signature": "(method) NewComponentHelperMain.writeComponentFiles(componentPath: string, files: File[]): Promise<PathOsBasedRelative[]>",
910
- "name": "writeComponentFiles",
911
- "params": [
912
- {
913
- "__schema": "ParameterSchema",
914
- "location": {
915
- "filePath": "new-component-helper.main.runtime.ts",
916
- "line": 175,
917
- "character": 29
918
- },
919
- "name": "componentPath",
920
- "type": {
921
- "__schema": "KeywordTypeSchema",
922
- "location": {
923
- "filePath": "new-component-helper.main.runtime.ts",
924
- "line": 175,
925
- "character": 44
926
- },
927
- "name": "string"
928
- },
929
- "isOptional": false,
930
- "isSpread": false
931
- },
932
- {
933
- "__schema": "ParameterSchema",
934
- "location": {
935
- "filePath": "new-component-helper.main.runtime.ts",
936
- "line": 175,
937
- "character": 52
938
- },
939
- "name": "files",
940
- "type": {
941
- "__schema": "TypeArraySchema",
942
- "location": {
943
- "filePath": "new-component-helper.main.runtime.ts",
944
- "line": 175,
945
- "character": 59
946
- },
947
- "type": {
948
- "__schema": "TypeRefSchema",
949
- "location": {
950
- "filePath": "new-component-helper.main.runtime.ts",
951
- "line": 175,
952
- "character": 59
953
- },
954
- "name": "File"
955
- }
956
- },
957
- "isOptional": false,
958
- "isSpread": false
959
- }
960
- ],
961
- "returnType": {
962
- "__schema": "TypeRefSchema",
963
- "location": {
964
- "filePath": "new-component-helper.main.runtime.ts",
965
- "line": 175,
966
- "character": 68
967
- },
968
- "name": "Promise",
969
- "typeArgs": [
970
- {
971
- "__schema": "TypeArraySchema",
972
- "location": {
973
- "filePath": "new-component-helper.main.runtime.ts",
974
- "line": 175,
975
- "character": 76
976
- },
977
- "type": {
978
- "__schema": "TypeRefSchema",
979
- "location": {
980
- "filePath": "new-component-helper.main.runtime.ts",
981
- "line": 175,
982
- "character": 76
983
- },
984
- "name": "PathOsBasedRelative"
985
- }
986
- }
987
- ]
988
- },
989
- "modifiers": [
990
- "async"
991
- ]
992
- },
993
- {
994
- "__schema": "FunctionLikeSchema",
995
- "location": {
996
- "filePath": "new-component-helper.main.runtime.ts",
997
- "line": 210,
998
- "character": 3
999
- },
1000
- "signature": "(method) NewComponentHelperMain.getConfigFromExistingToNewComponent(comp: Component): Promise<{}>",
1001
- "name": "getConfigFromExistingToNewComponent",
1002
- "params": [
1003
- {
1004
- "__schema": "ParameterSchema",
1005
- "location": {
1006
- "filePath": "new-component-helper.main.runtime.ts",
1007
- "line": 210,
1008
- "character": 45
1009
- },
1010
- "name": "comp",
1011
- "type": {
1012
- "__schema": "TypeRefSchema",
1013
- "location": {
1014
- "filePath": "new-component-helper.main.runtime.ts",
1015
- "line": 210,
1016
- "character": 51
1017
- },
1018
- "name": "Component"
1019
- },
1020
- "isOptional": false,
1021
- "isSpread": false
1022
- }
1023
- ],
1024
- "returnType": {
1025
- "__schema": "InferenceTypeSchema",
1026
- "location": {
1027
- "filePath": "new-component-helper.main.runtime.ts",
1028
- "line": 210,
1029
- "character": 3
1030
- },
1031
- "type": "Promise<{}>"
1032
- },
1033
- "modifiers": [
1034
- "async"
1035
- ]
1036
- },
1037
- {
1038
- "__schema": "VariableLikeSchema",
1039
- "location": {
1040
- "filePath": "new-component-helper.main.runtime.ts",
1041
- "line": 225,
1042
- "character": 3
1043
- },
1044
- "signature": "(property) NewComponentHelperMain.slots: never[]",
1045
- "name": "slots",
1046
- "type": {
1047
- "__schema": "InferenceTypeSchema",
1048
- "location": {
1049
- "filePath": "new-component-helper.main.runtime.ts",
1050
- "line": 225,
1051
- "character": 3
1052
- },
1053
- "type": "never[]"
1054
- },
1055
- "isOptional": true,
1056
- "defaultValue": "[]"
1057
- },
1058
- {
1059
- "__schema": "VariableLikeSchema",
1060
- "location": {
1061
- "filePath": "new-component-helper.main.runtime.ts",
1062
- "line": 226,
1063
- "character": 3
1064
- },
1065
- "signature": "(property) NewComponentHelperMain.dependencies: Aspect[]",
1066
- "name": "dependencies",
1067
- "type": {
1068
- "__schema": "InferenceTypeSchema",
1069
- "location": {
1070
- "filePath": "new-component-helper.main.runtime.ts",
1071
- "line": 226,
1072
- "character": 3
1073
- },
1074
- "type": "Aspect[]"
1075
- },
1076
- "isOptional": true,
1077
- "defaultValue": "[WorkspaceAspect, TrackerAspect]"
1078
- },
1079
- {
1080
- "__schema": "VariableLikeSchema",
1081
- "location": {
1082
- "filePath": "new-component-helper.main.runtime.ts",
1083
- "line": 227,
1084
- "character": 3
1085
- },
1086
- "signature": "(property) NewComponentHelperMain.runtime: RuntimeDefinition",
1087
- "name": "runtime",
1088
- "type": {
1089
- "__schema": "InferenceTypeSchema",
1090
- "location": {
1091
- "filePath": "new-component-helper.main.runtime.ts",
1092
- "line": 227,
1093
- "character": 3
1094
- },
1095
- "type": "RuntimeDefinition"
1096
- },
1097
- "isOptional": true,
1098
- "defaultValue": "MainRuntime"
1099
- },
1100
- {
1101
- "__schema": "FunctionLikeSchema",
1102
- "location": {
1103
- "filePath": "new-component-helper.main.runtime.ts",
1104
- "line": 228,
1105
- "character": 3
1106
- },
1107
- "signature": "(method) NewComponentHelperMain.provider([workspace, tracker]: [Workspace, TrackerMain], config: any, _: any, harmony: Harmony): Promise<NewComponentHelperMain>",
1108
- "name": "provider",
1109
- "params": [
1110
- {
1111
- "__schema": "ParameterSchema",
1112
- "location": {
1113
- "filePath": "new-component-helper.main.runtime.ts",
1114
- "line": 228,
1115
- "character": 25
1116
- },
1117
- "name": "[ workspace, tracker ]",
1118
- "type": {
1119
- "__schema": "TupleTypeSchema",
1120
- "location": {
1121
- "filePath": "new-component-helper.main.runtime.ts",
1122
- "line": 228,
1123
- "character": 47
1124
- },
1125
- "elements": [
1126
- {
1127
- "__schema": "TypeRefSchema",
1128
- "location": {
1129
- "filePath": "new-component-helper.main.runtime.ts",
1130
- "line": 228,
1131
- "character": 48
1132
- },
1133
- "name": "Workspace"
1134
- },
1135
- {
1136
- "__schema": "TypeRefSchema",
1137
- "location": {
1138
- "filePath": "new-component-helper.main.runtime.ts",
1139
- "line": 228,
1140
- "character": 59
1141
- },
1142
- "name": "TrackerMain"
1143
- }
1144
- ]
1145
- },
1146
- "isOptional": false,
1147
- "isSpread": false
1148
- },
1149
- {
1150
- "__schema": "ParameterSchema",
1151
- "location": {
1152
- "filePath": "new-component-helper.main.runtime.ts",
1153
- "line": 228,
1154
- "character": 73
1155
- },
1156
- "name": "config",
1157
- "type": {
1158
- "__schema": "InferenceTypeSchema",
1159
- "location": {
1160
- "filePath": "new-component-helper.main.runtime.ts",
1161
- "line": 228,
1162
- "character": 73
1163
- },
1164
- "type": "any"
1165
- },
1166
- "isOptional": false,
1167
- "isSpread": false
1168
- },
1169
- {
1170
- "__schema": "ParameterSchema",
1171
- "location": {
1172
- "filePath": "new-component-helper.main.runtime.ts",
1173
- "line": 228,
1174
- "character": 81
1175
- },
1176
- "name": "_",
1177
- "type": {
1178
- "__schema": "InferenceTypeSchema",
1179
- "location": {
1180
- "filePath": "new-component-helper.main.runtime.ts",
1181
- "line": 228,
1182
- "character": 81
1183
- },
1184
- "type": "any"
1185
- },
1186
- "isOptional": false,
1187
- "isSpread": false
1188
- },
1189
- {
1190
- "__schema": "ParameterSchema",
1191
- "location": {
1192
- "filePath": "new-component-helper.main.runtime.ts",
1193
- "line": 228,
1194
- "character": 84
1195
- },
1196
- "name": "harmony",
1197
- "type": {
1198
- "__schema": "TypeRefSchema",
1199
- "location": {
1200
- "filePath": "new-component-helper.main.runtime.ts",
1201
- "line": 228,
1202
- "character": 93
1203
- },
1204
- "name": "Harmony"
1205
- },
1206
- "isOptional": false,
1207
- "isSpread": false
1208
- }
1209
- ],
1210
- "returnType": {
1211
- "__schema": "InferenceTypeSchema",
1212
- "location": {
1213
- "filePath": "new-component-helper.main.runtime.ts",
1214
- "line": 228,
1215
- "character": 3
1216
- },
1217
- "type": "Promise<NewComponentHelperMain>"
1218
- },
1219
- "modifiers": [
1220
- "static",
1221
- "async"
1222
- ]
1223
- }
1224
- ],
1225
- "extendsNodes": [],
1226
- "implementNodes": []
1227
- }
1228
- },
1229
- {
1230
- "__schema": "UnImplementedSchema",
1231
- "location": {
1232
- "filePath": "index.ts",
1233
- "line": 4,
1234
- "character": 16
1235
- },
1236
- "name": "NewComponentHelperAspect",
1237
- "type": "Identifier"
1238
- },
1239
- {
1240
- "__schema": "ExportSchema",
1241
- "location": {
1242
- "filePath": "index.ts",
1243
- "line": 5,
1244
- "character": 10
1245
- },
1246
- "signature": "const NewComponentHelperAspect: Aspect",
1247
- "name": "NewComponentHelperAspect",
1248
- "exportNode": {
1249
- "__schema": "VariableLikeSchema",
1250
- "location": {
1251
- "filePath": "new-component-helper.aspect.ts",
1252
- "line": 3,
1253
- "character": 14
1254
- },
1255
- "signature": "const NewComponentHelperAspect: Aspect",
1256
- "name": "NewComponentHelperAspect",
1257
- "type": {
1258
- "__schema": "TypeRefSchema",
1259
- "location": {
1260
- "filePath": "new-component-helper.aspect.ts",
1261
- "line": 3,
1262
- "character": 14
1263
- },
1264
- "name": "Aspect",
1265
- "componentId": {
1266
- "scope": "teambit.harmony",
1267
- "name": "harmony",
1268
- "version": "0.4.6"
1269
- }
1270
- },
1271
- "isOptional": false,
1272
- "defaultValue": "Aspect.create({\n id: 'teambit.component/new-component-helper',\n})"
1273
- }
1274
- }
1275
- ],
1276
- "internals": []
1277
- },
1278
- "internals": [
1279
- {
1280
- "__schema": "ModuleSchema",
1281
- "location": {
1282
- "filePath": "new-component-helper.main.runtime.ts",
1283
- "line": 1,
1284
- "character": 1
1285
- },
1286
- "exports": [
1287
- {
1288
- "__schema": "ClassSchema",
1289
- "location": {
1290
- "filePath": "new-component-helper.main.runtime.ts",
1291
- "line": 24,
1292
- "character": 1
1293
- },
1294
- "signature": "class NewComponentHelperMain",
1295
- "name": "NewComponentHelperMain",
1296
- "members": [
1297
- {
1298
- "__schema": "ConstructorSchema",
1299
- "location": {
1300
- "filePath": "new-component-helper.main.runtime.ts",
1301
- "line": 25,
1302
- "character": 3
1303
- },
1304
- "signature": "constructor NewComponentHelperMain(workspace: Workspace, harmony: Harmony, tracker: TrackerMain): NewComponentHelperMain",
1305
- "name": "constructor",
1306
- "params": [
1307
- {
1308
- "__schema": "ParameterSchema",
1309
- "location": {
1310
- "filePath": "new-component-helper.main.runtime.ts",
1311
- "line": 26,
1312
- "character": 5
1313
- },
1314
- "name": "workspace",
1315
- "type": {
1316
- "__schema": "TypeRefSchema",
1317
- "location": {
1318
- "filePath": "new-component-helper.main.runtime.ts",
1319
- "line": 26,
1320
- "character": 24
1321
- },
1322
- "name": "Workspace"
1323
- },
1324
- "isOptional": false,
1325
- "isSpread": false
1326
- },
1327
- {
1328
- "__schema": "ParameterSchema",
1329
- "location": {
1330
- "filePath": "new-component-helper.main.runtime.ts",
1331
- "line": 27,
1332
- "character": 5
1333
- },
1334
- "name": "harmony",
1335
- "type": {
1336
- "__schema": "TypeRefSchema",
1337
- "location": {
1338
- "filePath": "new-component-helper.main.runtime.ts",
1339
- "line": 27,
1340
- "character": 22
1341
- },
1342
- "name": "Harmony"
1343
- },
1344
- "isOptional": false,
1345
- "isSpread": false
1346
- },
1347
- {
1348
- "__schema": "ParameterSchema",
1349
- "location": {
1350
- "filePath": "new-component-helper.main.runtime.ts",
1351
- "line": 28,
1352
- "character": 5
1353
- },
1354
- "name": "tracker",
1355
- "type": {
1356
- "__schema": "TypeRefSchema",
1357
- "location": {
1358
- "filePath": "new-component-helper.main.runtime.ts",
1359
- "line": 28,
1360
- "character": 22
1361
- },
1362
- "name": "TrackerMain"
1363
- },
1364
- "isOptional": false,
1365
- "isSpread": false
1366
- }
1367
- ],
1368
- "returnType": {
1369
- "__schema": "ThisTypeSchema",
1370
- "location": {
1371
- "filePath": "new-component-helper.main.runtime.ts",
1372
- "line": 24,
1373
- "character": 1
1374
- },
1375
- "name": "NewComponentHelperMain"
1376
- },
1377
- "modifiers": []
1378
- },
1379
- {
1380
- "__schema": "FunctionLikeSchema",
1381
- "location": {
1382
- "filePath": "new-component-helper.main.runtime.ts",
1383
- "line": 34,
1384
- "character": 3
1385
- },
1386
- "doc": {
1387
- "__schema": "DocSchema",
1388
- "location": {
1389
- "filePath": "new-component-helper.main.runtime.ts",
1390
- "line": 30,
1391
- "character": 3
1392
- },
1393
- "raw": "/**\n * when creating/forking a component, the user provides the new name and optionally the scope/namespace.\n * from this user input, create a ComponentID.\n */",
1394
- "comment": "when creating/forking a component, the user provides the new name and optionally the scope/namespace.\nfrom this user input, create a ComponentID.",
1395
- "tags": []
1396
- },
1397
- "signature": "(method) NewComponentHelperMain.getNewComponentId(name: string, namespace?: string, scope?: string): ComponentID",
1398
- "name": "getNewComponentId",
1399
- "params": [
1400
- {
1401
- "__schema": "ParameterSchema",
1402
- "location": {
1403
- "filePath": "new-component-helper.main.runtime.ts",
1404
- "line": 34,
1405
- "character": 21
1406
- },
1407
- "name": "name",
1408
- "type": {
1409
- "__schema": "KeywordTypeSchema",
1410
- "location": {
1411
- "filePath": "new-component-helper.main.runtime.ts",
1412
- "line": 34,
1413
- "character": 27
1414
- },
1415
- "name": "string"
1416
- },
1417
- "isOptional": false,
1418
- "isSpread": false
1419
- },
1420
- {
1421
- "__schema": "ParameterSchema",
1422
- "location": {
1423
- "filePath": "new-component-helper.main.runtime.ts",
1424
- "line": 34,
1425
- "character": 35
1426
- },
1427
- "name": "namespace",
1428
- "type": {
1429
- "__schema": "KeywordTypeSchema",
1430
- "location": {
1431
- "filePath": "new-component-helper.main.runtime.ts",
1432
- "line": 34,
1433
- "character": 47
1434
- },
1435
- "name": "string"
1436
- },
1437
- "isOptional": true,
1438
- "isSpread": false
1439
- },
1440
- {
1441
- "__schema": "ParameterSchema",
1442
- "location": {
1443
- "filePath": "new-component-helper.main.runtime.ts",
1444
- "line": 34,
1445
- "character": 55
1446
- },
1447
- "name": "scope",
1448
- "type": {
1449
- "__schema": "KeywordTypeSchema",
1450
- "location": {
1451
- "filePath": "new-component-helper.main.runtime.ts",
1452
- "line": 34,
1453
- "character": 63
1454
- },
1455
- "name": "string"
1456
- },
1457
- "isOptional": true,
1458
- "isSpread": false
1459
- }
1460
- ],
1461
- "returnType": {
1462
- "__schema": "TypeRefSchema",
1463
- "location": {
1464
- "filePath": "new-component-helper.main.runtime.ts",
1465
- "line": 34,
1466
- "character": 3
1467
- },
1468
- "name": "ComponentID",
1469
- "componentId": {
1470
- "scope": "teambit.component",
1471
- "name": "component-id",
1472
- "version": "1.2.2"
1473
- }
1474
- },
1475
- "modifiers": []
1476
- },
1477
- {
1478
- "__schema": "FunctionLikeSchema",
1479
- "location": {
1480
- "filePath": "new-component-helper.main.runtime.ts",
1481
- "line": 50,
1482
- "character": 3
1483
- },
1484
- "doc": {
1485
- "__schema": "DocSchema",
1486
- "location": {
1487
- "filePath": "new-component-helper.main.runtime.ts",
1488
- "line": 45,
1489
- "character": 3
1490
- },
1491
- "raw": "/**\n * when creating/forking a component, the user may or may not provide a path.\n * if not provided, generate the path based on the component-id.\n * the component will be written to that path.\n */",
1492
- "comment": "when creating/forking a component, the user may or may not provide a path.\nif not provided, generate the path based on the component-id.\nthe component will be written to that path.",
1493
- "tags": []
1494
- },
1495
- "signature": "(method) NewComponentHelperMain.getNewComponentPath(componentId: ComponentID, { pathFromUser, componentsToCreate, incrementPathIfConflicted, }?: {\n pathFromUser?: string;\n componentsToCreate?: number;\n incrementPathIfConflicted?: boolean;\n}): PathLinuxRelative",
1496
- "name": "getNewComponentPath",
1497
- "params": [
1498
- {
1499
- "__schema": "ParameterSchema",
1500
- "location": {
1501
- "filePath": "new-component-helper.main.runtime.ts",
1502
- "line": 51,
1503
- "character": 5
1504
- },
1505
- "name": "componentId",
1506
- "type": {
1507
- "__schema": "TypeRefSchema",
1508
- "location": {
1509
- "filePath": "new-component-helper.main.runtime.ts",
1510
- "line": 51,
1511
- "character": 18
1512
- },
1513
- "name": "ComponentID"
1514
- },
1515
- "isOptional": false,
1516
- "isSpread": false
1517
- },
1518
- {
1519
- "__schema": "ParameterSchema",
1520
- "location": {
1521
- "filePath": "new-component-helper.main.runtime.ts",
1522
- "line": 52,
1523
- "character": 5
1524
- },
1525
- "name": "{ pathFromUser, componentsToCreate, incrementPathIfConflicted }",
1526
- "type": {
1527
- "__schema": "TypeLiteralSchema",
1528
- "location": {
1529
- "filePath": "new-component-helper.main.runtime.ts",
1530
- "line": 56,
1531
- "character": 8
1532
- },
1533
- "members": [
1534
- {
1535
- "__schema": "VariableLikeSchema",
1536
- "location": {
1537
- "filePath": "new-component-helper.main.runtime.ts",
1538
- "line": 56,
1539
- "character": 10
1540
- },
1541
- "signature": "(property) pathFromUser?: string | undefined",
1542
- "name": "pathFromUser",
1543
- "type": {
1544
- "__schema": "KeywordTypeSchema",
1545
- "location": {
1546
- "filePath": "new-component-helper.main.runtime.ts",
1547
- "line": 56,
1548
- "character": 25
1549
- },
1550
- "name": "string"
1551
- },
1552
- "isOptional": true
1553
- },
1554
- {
1555
- "__schema": "VariableLikeSchema",
1556
- "location": {
1557
- "filePath": "new-component-helper.main.runtime.ts",
1558
- "line": 56,
1559
- "character": 33
1560
- },
1561
- "signature": "(property) componentsToCreate?: number | undefined",
1562
- "name": "componentsToCreate",
1563
- "type": {
1564
- "__schema": "KeywordTypeSchema",
1565
- "location": {
1566
- "filePath": "new-component-helper.main.runtime.ts",
1567
- "line": 56,
1568
- "character": 54
1569
- },
1570
- "name": "number"
1571
- },
1572
- "isOptional": true
1573
- },
1574
- {
1575
- "__schema": "VariableLikeSchema",
1576
- "location": {
1577
- "filePath": "new-component-helper.main.runtime.ts",
1578
- "line": 56,
1579
- "character": 62
1580
- },
1581
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
1582
- "name": "incrementPathIfConflicted",
1583
- "type": {
1584
- "__schema": "KeywordTypeSchema",
1585
- "location": {
1586
- "filePath": "new-component-helper.main.runtime.ts",
1587
- "line": 56,
1588
- "character": 90
1589
- },
1590
- "name": "boolean"
1591
- },
1592
- "isOptional": true
1593
- }
1594
- ]
1595
- },
1596
- "isOptional": true,
1597
- "defaultValue": "{}",
1598
- "objectBindingNodes": [
1599
- {
1600
- "__schema": "VariableLikeSchema",
1601
- "location": {
1602
- "filePath": "new-component-helper.main.runtime.ts",
1603
- "line": 56,
1604
- "character": 10
1605
- },
1606
- "signature": "(property) pathFromUser?: string | undefined",
1607
- "name": "pathFromUser",
1608
- "type": {
1609
- "__schema": "KeywordTypeSchema",
1610
- "location": {
1611
- "filePath": "new-component-helper.main.runtime.ts",
1612
- "line": 56,
1613
- "character": 25
1614
- },
1615
- "name": "string"
1616
- },
1617
- "isOptional": true
1618
- },
1619
- {
1620
- "__schema": "VariableLikeSchema",
1621
- "location": {
1622
- "filePath": "new-component-helper.main.runtime.ts",
1623
- "line": 56,
1624
- "character": 33
1625
- },
1626
- "signature": "(property) componentsToCreate?: number | undefined",
1627
- "name": "componentsToCreate",
1628
- "type": {
1629
- "__schema": "KeywordTypeSchema",
1630
- "location": {
1631
- "filePath": "new-component-helper.main.runtime.ts",
1632
- "line": 56,
1633
- "character": 54
1634
- },
1635
- "name": "number"
1636
- },
1637
- "isOptional": true
1638
- },
1639
- {
1640
- "__schema": "VariableLikeSchema",
1641
- "location": {
1642
- "filePath": "new-component-helper.main.runtime.ts",
1643
- "line": 56,
1644
- "character": 62
1645
- },
1646
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
1647
- "name": "incrementPathIfConflicted",
1648
- "type": {
1649
- "__schema": "KeywordTypeSchema",
1650
- "location": {
1651
- "filePath": "new-component-helper.main.runtime.ts",
1652
- "line": 56,
1653
- "character": 90
1654
- },
1655
- "name": "boolean"
1656
- },
1657
- "isOptional": true
1658
- }
1659
- ],
1660
- "isSpread": false
1661
- }
1662
- ],
1663
- "returnType": {
1664
- "__schema": "TypeRefSchema",
1665
- "location": {
1666
- "filePath": "new-component-helper.main.runtime.ts",
1667
- "line": 50,
1668
- "character": 3
1669
- },
1670
- "name": "PathLinuxRelative",
1671
- "componentId": {
1672
- "scope": "teambit.toolbox",
1673
- "name": "path/path",
1674
- "version": "0.0.5"
1675
- }
1676
- },
1677
- "modifiers": []
1678
- },
1679
- {
1680
- "__schema": "FunctionLikeSchema",
1681
- "location": {
1682
- "filePath": "new-component-helper.main.runtime.ts",
1683
- "line": 92,
1684
- "character": 3
1685
- },
1686
- "signature": "(method) NewComponentHelperMain.writeAndAddNewComp(comp: Component, targetId: ComponentID, options?: {\n path?: string;\n scope?: string;\n env?: string;\n incrementPathIfConflicted?: boolean;\n compile?: boolean;\n loadOptions?: WorkspaceComponentLoadOptions;\n}, config?: {\n [aspectName: string]: any;\n} | undefined): Promise<void>",
1687
- "name": "writeAndAddNewComp",
1688
- "params": [
1689
- {
1690
- "__schema": "ParameterSchema",
1691
- "location": {
1692
- "filePath": "new-component-helper.main.runtime.ts",
1693
- "line": 93,
1694
- "character": 5
1695
- },
1696
- "name": "comp",
1697
- "type": {
1698
- "__schema": "TypeRefSchema",
1699
- "location": {
1700
- "filePath": "new-component-helper.main.runtime.ts",
1701
- "line": 93,
1702
- "character": 11
1703
- },
1704
- "name": "Component"
1705
- },
1706
- "isOptional": false,
1707
- "isSpread": false
1708
- },
1709
- {
1710
- "__schema": "ParameterSchema",
1711
- "location": {
1712
- "filePath": "new-component-helper.main.runtime.ts",
1713
- "line": 94,
1714
- "character": 5
1715
- },
1716
- "name": "targetId",
1717
- "type": {
1718
- "__schema": "TypeRefSchema",
1719
- "location": {
1720
- "filePath": "new-component-helper.main.runtime.ts",
1721
- "line": 94,
1722
- "character": 15
1723
- },
1724
- "name": "ComponentID"
1725
- },
1726
- "isOptional": false,
1727
- "isSpread": false
1728
- },
1729
- {
1730
- "__schema": "ParameterSchema",
1731
- "location": {
1732
- "filePath": "new-component-helper.main.runtime.ts",
1733
- "line": 95,
1734
- "character": 5
1735
- },
1736
- "name": "options",
1737
- "type": {
1738
- "__schema": "TypeLiteralSchema",
1739
- "location": {
1740
- "filePath": "new-component-helper.main.runtime.ts",
1741
- "line": 95,
1742
- "character": 15
1743
- },
1744
- "members": [
1745
- {
1746
- "__schema": "VariableLikeSchema",
1747
- "location": {
1748
- "filePath": "new-component-helper.main.runtime.ts",
1749
- "line": 96,
1750
- "character": 7
1751
- },
1752
- "signature": "(property) path?: string | undefined",
1753
- "name": "path",
1754
- "type": {
1755
- "__schema": "KeywordTypeSchema",
1756
- "location": {
1757
- "filePath": "new-component-helper.main.runtime.ts",
1758
- "line": 96,
1759
- "character": 14
1760
- },
1761
- "name": "string"
1762
- },
1763
- "isOptional": true
1764
- },
1765
- {
1766
- "__schema": "VariableLikeSchema",
1767
- "location": {
1768
- "filePath": "new-component-helper.main.runtime.ts",
1769
- "line": 97,
1770
- "character": 7
1771
- },
1772
- "signature": "(property) scope?: string | undefined",
1773
- "name": "scope",
1774
- "type": {
1775
- "__schema": "KeywordTypeSchema",
1776
- "location": {
1777
- "filePath": "new-component-helper.main.runtime.ts",
1778
- "line": 97,
1779
- "character": 15
1780
- },
1781
- "name": "string"
1782
- },
1783
- "isOptional": true
1784
- },
1785
- {
1786
- "__schema": "VariableLikeSchema",
1787
- "location": {
1788
- "filePath": "new-component-helper.main.runtime.ts",
1789
- "line": 98,
1790
- "character": 7
1791
- },
1792
- "signature": "(property) env?: string | undefined",
1793
- "name": "env",
1794
- "type": {
1795
- "__schema": "KeywordTypeSchema",
1796
- "location": {
1797
- "filePath": "new-component-helper.main.runtime.ts",
1798
- "line": 98,
1799
- "character": 13
1800
- },
1801
- "name": "string"
1802
- },
1803
- "isOptional": true
1804
- },
1805
- {
1806
- "__schema": "VariableLikeSchema",
1807
- "location": {
1808
- "filePath": "new-component-helper.main.runtime.ts",
1809
- "line": 99,
1810
- "character": 7
1811
- },
1812
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
1813
- "name": "incrementPathIfConflicted",
1814
- "type": {
1815
- "__schema": "KeywordTypeSchema",
1816
- "location": {
1817
- "filePath": "new-component-helper.main.runtime.ts",
1818
- "line": 99,
1819
- "character": 35
1820
- },
1821
- "name": "boolean"
1822
- },
1823
- "isOptional": true
1824
- },
1825
- {
1826
- "__schema": "VariableLikeSchema",
1827
- "location": {
1828
- "filePath": "new-component-helper.main.runtime.ts",
1829
- "line": 100,
1830
- "character": 7
1831
- },
1832
- "signature": "(property) compile?: boolean | undefined",
1833
- "name": "compile",
1834
- "type": {
1835
- "__schema": "KeywordTypeSchema",
1836
- "location": {
1837
- "filePath": "new-component-helper.main.runtime.ts",
1838
- "line": 100,
1839
- "character": 17
1840
- },
1841
- "name": "boolean"
1842
- },
1843
- "isOptional": true
1844
- },
1845
- {
1846
- "__schema": "VariableLikeSchema",
1847
- "location": {
1848
- "filePath": "new-component-helper.main.runtime.ts",
1849
- "line": 101,
1850
- "character": 7
1851
- },
1852
- "signature": "(property) loadOptions?: WorkspaceComponentLoadOptions | undefined",
1853
- "name": "loadOptions",
1854
- "type": {
1855
- "__schema": "TypeRefSchema",
1856
- "location": {
1857
- "filePath": "new-component-helper.main.runtime.ts",
1858
- "line": 101,
1859
- "character": 21
1860
- },
1861
- "name": "WorkspaceComponentLoadOptions"
1862
- },
1863
- "isOptional": true
1864
- }
1865
- ]
1866
- },
1867
- "isOptional": true,
1868
- "isSpread": false
1869
- },
1870
- {
1871
- "__schema": "ParameterSchema",
1872
- "location": {
1873
- "filePath": "new-component-helper.main.runtime.ts",
1874
- "line": 103,
1875
- "character": 5
1876
- },
1877
- "name": "config",
1878
- "type": {
1879
- "__schema": "TypeLiteralSchema",
1880
- "location": {
1881
- "filePath": "new-component-helper.main.runtime.ts",
1882
- "line": 103,
1883
- "character": 14
1884
- },
1885
- "members": [
1886
- {
1887
- "__schema": "IndexSignatureSchema",
1888
- "location": {
1889
- "filePath": "new-component-helper.main.runtime.ts",
1890
- "line": 103,
1891
- "character": 16
1892
- },
1893
- "keyType": {
1894
- "__schema": "ParameterSchema",
1895
- "location": {
1896
- "filePath": "new-component-helper.main.runtime.ts",
1897
- "line": 103,
1898
- "character": 17
1899
- },
1900
- "name": "aspectName",
1901
- "type": {
1902
- "__schema": "KeywordTypeSchema",
1903
- "location": {
1904
- "filePath": "new-component-helper.main.runtime.ts",
1905
- "line": 103,
1906
- "character": 29
1907
- },
1908
- "name": "string"
1909
- },
1910
- "isOptional": false,
1911
- "isSpread": false
1912
- },
1913
- "valueType": {
1914
- "__schema": "KeywordTypeSchema",
1915
- "location": {
1916
- "filePath": "new-component-helper.main.runtime.ts",
1917
- "line": 103,
1918
- "character": 38
1919
- },
1920
- "name": "any"
1921
- }
1922
- }
1923
- ]
1924
- },
1925
- "isOptional": true,
1926
- "isSpread": false
1927
- }
1928
- ],
1929
- "returnType": {
1930
- "__schema": "InferenceTypeSchema",
1931
- "location": {
1932
- "filePath": "new-component-helper.main.runtime.ts",
1933
- "line": 92,
1934
- "character": 3
1935
- },
1936
- "type": "Promise<void>"
1937
- },
1938
- "modifiers": [
1939
- "async"
1940
- ]
1941
- },
1942
- {
1943
- "__schema": "FunctionLikeSchema",
1944
- "location": {
1945
- "filePath": "new-component-helper.main.runtime.ts",
1946
- "line": 140,
1947
- "character": 3
1948
- },
1949
- "signature": "(method) NewComponentHelperMain.writeAndAddNewCompFromFiles(files: File[], targetId: ComponentID, mainFile: string, options?: {\n path?: string;\n incrementPathIfConflicted?: boolean;\n}, config?: {\n [aspectName: string]: any;\n} | undefined): Promise<void>",
1950
- "name": "writeAndAddNewCompFromFiles",
1951
- "params": [
1952
- {
1953
- "__schema": "ParameterSchema",
1954
- "location": {
1955
- "filePath": "new-component-helper.main.runtime.ts",
1956
- "line": 141,
1957
- "character": 5
1958
- },
1959
- "name": "files",
1960
- "type": {
1961
- "__schema": "TypeArraySchema",
1962
- "location": {
1963
- "filePath": "new-component-helper.main.runtime.ts",
1964
- "line": 141,
1965
- "character": 12
1966
- },
1967
- "type": {
1968
- "__schema": "TypeRefSchema",
1969
- "location": {
1970
- "filePath": "new-component-helper.main.runtime.ts",
1971
- "line": 141,
1972
- "character": 12
1973
- },
1974
- "name": "File"
1975
- }
1976
- },
1977
- "isOptional": false,
1978
- "isSpread": false
1979
- },
1980
- {
1981
- "__schema": "ParameterSchema",
1982
- "location": {
1983
- "filePath": "new-component-helper.main.runtime.ts",
1984
- "line": 142,
1985
- "character": 5
1986
- },
1987
- "name": "targetId",
1988
- "type": {
1989
- "__schema": "TypeRefSchema",
1990
- "location": {
1991
- "filePath": "new-component-helper.main.runtime.ts",
1992
- "line": 142,
1993
- "character": 15
1994
- },
1995
- "name": "ComponentID"
1996
- },
1997
- "isOptional": false,
1998
- "isSpread": false
1999
- },
2000
- {
2001
- "__schema": "ParameterSchema",
2002
- "location": {
2003
- "filePath": "new-component-helper.main.runtime.ts",
2004
- "line": 143,
2005
- "character": 5
2006
- },
2007
- "name": "mainFile",
2008
- "type": {
2009
- "__schema": "KeywordTypeSchema",
2010
- "location": {
2011
- "filePath": "new-component-helper.main.runtime.ts",
2012
- "line": 143,
2013
- "character": 15
2014
- },
2015
- "name": "string"
2016
- },
2017
- "isOptional": false,
2018
- "isSpread": false
2019
- },
2020
- {
2021
- "__schema": "ParameterSchema",
2022
- "location": {
2023
- "filePath": "new-component-helper.main.runtime.ts",
2024
- "line": 144,
2025
- "character": 5
2026
- },
2027
- "name": "options",
2028
- "type": {
2029
- "__schema": "TypeLiteralSchema",
2030
- "location": {
2031
- "filePath": "new-component-helper.main.runtime.ts",
2032
- "line": 144,
2033
- "character": 15
2034
- },
2035
- "members": [
2036
- {
2037
- "__schema": "VariableLikeSchema",
2038
- "location": {
2039
- "filePath": "new-component-helper.main.runtime.ts",
2040
- "line": 144,
2041
- "character": 17
2042
- },
2043
- "signature": "(property) path?: string | undefined",
2044
- "name": "path",
2045
- "type": {
2046
- "__schema": "KeywordTypeSchema",
2047
- "location": {
2048
- "filePath": "new-component-helper.main.runtime.ts",
2049
- "line": 144,
2050
- "character": 24
2051
- },
2052
- "name": "string"
2053
- },
2054
- "isOptional": true
2055
- },
2056
- {
2057
- "__schema": "VariableLikeSchema",
2058
- "location": {
2059
- "filePath": "new-component-helper.main.runtime.ts",
2060
- "line": 144,
2061
- "character": 32
2062
- },
2063
- "signature": "(property) incrementPathIfConflicted?: boolean | undefined",
2064
- "name": "incrementPathIfConflicted",
2065
- "type": {
2066
- "__schema": "KeywordTypeSchema",
2067
- "location": {
2068
- "filePath": "new-component-helper.main.runtime.ts",
2069
- "line": 144,
2070
- "character": 60
2071
- },
2072
- "name": "boolean"
2073
- },
2074
- "isOptional": true
2075
- }
2076
- ]
2077
- },
2078
- "isOptional": true,
2079
- "isSpread": false
2080
- },
2081
- {
2082
- "__schema": "ParameterSchema",
2083
- "location": {
2084
- "filePath": "new-component-helper.main.runtime.ts",
2085
- "line": 145,
2086
- "character": 5
2087
- },
2088
- "name": "config",
2089
- "type": {
2090
- "__schema": "TypeLiteralSchema",
2091
- "location": {
2092
- "filePath": "new-component-helper.main.runtime.ts",
2093
- "line": 145,
2094
- "character": 14
2095
- },
2096
- "members": [
2097
- {
2098
- "__schema": "IndexSignatureSchema",
2099
- "location": {
2100
- "filePath": "new-component-helper.main.runtime.ts",
2101
- "line": 145,
2102
- "character": 16
2103
- },
2104
- "keyType": {
2105
- "__schema": "ParameterSchema",
2106
- "location": {
2107
- "filePath": "new-component-helper.main.runtime.ts",
2108
- "line": 145,
2109
- "character": 17
2110
- },
2111
- "name": "aspectName",
2112
- "type": {
2113
- "__schema": "KeywordTypeSchema",
2114
- "location": {
2115
- "filePath": "new-component-helper.main.runtime.ts",
2116
- "line": 145,
2117
- "character": 29
2118
- },
2119
- "name": "string"
2120
- },
2121
- "isOptional": false,
2122
- "isSpread": false
2123
- },
2124
- "valueType": {
2125
- "__schema": "KeywordTypeSchema",
2126
- "location": {
2127
- "filePath": "new-component-helper.main.runtime.ts",
2128
- "line": 145,
2129
- "character": 38
2130
- },
2131
- "name": "any"
2132
- }
2133
- }
2134
- ]
2135
- },
2136
- "isOptional": true,
2137
- "isSpread": false
2138
- }
2139
- ],
2140
- "returnType": {
2141
- "__schema": "InferenceTypeSchema",
2142
- "location": {
2143
- "filePath": "new-component-helper.main.runtime.ts",
2144
- "line": 140,
2145
- "character": 3
2146
- },
2147
- "type": "Promise<void>"
2148
- },
2149
- "modifiers": [
2150
- "async"
2151
- ]
2152
- },
2153
- {
2154
- "__schema": "FunctionLikeSchema",
2155
- "location": {
2156
- "filePath": "new-component-helper.main.runtime.ts",
2157
- "line": 175,
2158
- "character": 3
2159
- },
2160
- "doc": {
2161
- "__schema": "DocSchema",
2162
- "location": {
2163
- "filePath": "new-component-helper.main.runtime.ts",
2164
- "line": 172,
2165
- "character": 3
2166
- },
2167
- "raw": "/**\n * writes component files into the specified directory.\n */",
2168
- "comment": "writes component files into the specified directory.",
2169
- "tags": []
2170
- },
2171
- "signature": "(method) NewComponentHelperMain.writeComponentFiles(componentPath: string, files: File[]): Promise<PathOsBasedRelative[]>",
2172
- "name": "writeComponentFiles",
2173
- "params": [
2174
- {
2175
- "__schema": "ParameterSchema",
2176
- "location": {
2177
- "filePath": "new-component-helper.main.runtime.ts",
2178
- "line": 175,
2179
- "character": 29
2180
- },
2181
- "name": "componentPath",
2182
- "type": {
2183
- "__schema": "KeywordTypeSchema",
2184
- "location": {
2185
- "filePath": "new-component-helper.main.runtime.ts",
2186
- "line": 175,
2187
- "character": 44
2188
- },
2189
- "name": "string"
2190
- },
2191
- "isOptional": false,
2192
- "isSpread": false
2193
- },
2194
- {
2195
- "__schema": "ParameterSchema",
2196
- "location": {
2197
- "filePath": "new-component-helper.main.runtime.ts",
2198
- "line": 175,
2199
- "character": 52
2200
- },
2201
- "name": "files",
2202
- "type": {
2203
- "__schema": "TypeArraySchema",
2204
- "location": {
2205
- "filePath": "new-component-helper.main.runtime.ts",
2206
- "line": 175,
2207
- "character": 59
2208
- },
2209
- "type": {
2210
- "__schema": "TypeRefSchema",
2211
- "location": {
2212
- "filePath": "new-component-helper.main.runtime.ts",
2213
- "line": 175,
2214
- "character": 59
2215
- },
2216
- "name": "File"
2217
- }
2218
- },
2219
- "isOptional": false,
2220
- "isSpread": false
2221
- }
2222
- ],
2223
- "returnType": {
2224
- "__schema": "TypeRefSchema",
2225
- "location": {
2226
- "filePath": "new-component-helper.main.runtime.ts",
2227
- "line": 175,
2228
- "character": 68
2229
- },
2230
- "name": "Promise",
2231
- "typeArgs": [
2232
- {
2233
- "__schema": "TypeArraySchema",
2234
- "location": {
2235
- "filePath": "new-component-helper.main.runtime.ts",
2236
- "line": 175,
2237
- "character": 76
2238
- },
2239
- "type": {
2240
- "__schema": "TypeRefSchema",
2241
- "location": {
2242
- "filePath": "new-component-helper.main.runtime.ts",
2243
- "line": 175,
2244
- "character": 76
2245
- },
2246
- "name": "PathOsBasedRelative"
2247
- }
2248
- }
2249
- ]
2250
- },
2251
- "modifiers": [
2252
- "async"
2253
- ]
2254
- },
2255
- {
2256
- "__schema": "FunctionLikeSchema",
2257
- "location": {
2258
- "filePath": "new-component-helper.main.runtime.ts",
2259
- "line": 210,
2260
- "character": 3
2261
- },
2262
- "signature": "(method) NewComponentHelperMain.getConfigFromExistingToNewComponent(comp: Component): Promise<{}>",
2263
- "name": "getConfigFromExistingToNewComponent",
2264
- "params": [
2265
- {
2266
- "__schema": "ParameterSchema",
2267
- "location": {
2268
- "filePath": "new-component-helper.main.runtime.ts",
2269
- "line": 210,
2270
- "character": 45
2271
- },
2272
- "name": "comp",
2273
- "type": {
2274
- "__schema": "TypeRefSchema",
2275
- "location": {
2276
- "filePath": "new-component-helper.main.runtime.ts",
2277
- "line": 210,
2278
- "character": 51
2279
- },
2280
- "name": "Component"
2281
- },
2282
- "isOptional": false,
2283
- "isSpread": false
2284
- }
2285
- ],
2286
- "returnType": {
2287
- "__schema": "InferenceTypeSchema",
2288
- "location": {
2289
- "filePath": "new-component-helper.main.runtime.ts",
2290
- "line": 210,
2291
- "character": 3
2292
- },
2293
- "type": "Promise<{}>"
2294
- },
2295
- "modifiers": [
2296
- "async"
2297
- ]
2298
- },
2299
- {
2300
- "__schema": "VariableLikeSchema",
2301
- "location": {
2302
- "filePath": "new-component-helper.main.runtime.ts",
2303
- "line": 225,
2304
- "character": 3
2305
- },
2306
- "signature": "(property) NewComponentHelperMain.slots: never[]",
2307
- "name": "slots",
2308
- "type": {
2309
- "__schema": "InferenceTypeSchema",
2310
- "location": {
2311
- "filePath": "new-component-helper.main.runtime.ts",
2312
- "line": 225,
2313
- "character": 3
2314
- },
2315
- "type": "never[]"
2316
- },
2317
- "isOptional": true,
2318
- "defaultValue": "[]"
2319
- },
2320
- {
2321
- "__schema": "VariableLikeSchema",
2322
- "location": {
2323
- "filePath": "new-component-helper.main.runtime.ts",
2324
- "line": 226,
2325
- "character": 3
2326
- },
2327
- "signature": "(property) NewComponentHelperMain.dependencies: Aspect[]",
2328
- "name": "dependencies",
2329
- "type": {
2330
- "__schema": "InferenceTypeSchema",
2331
- "location": {
2332
- "filePath": "new-component-helper.main.runtime.ts",
2333
- "line": 226,
2334
- "character": 3
2335
- },
2336
- "type": "Aspect[]"
2337
- },
2338
- "isOptional": true,
2339
- "defaultValue": "[WorkspaceAspect, TrackerAspect]"
2340
- },
2341
- {
2342
- "__schema": "VariableLikeSchema",
2343
- "location": {
2344
- "filePath": "new-component-helper.main.runtime.ts",
2345
- "line": 227,
2346
- "character": 3
2347
- },
2348
- "signature": "(property) NewComponentHelperMain.runtime: RuntimeDefinition",
2349
- "name": "runtime",
2350
- "type": {
2351
- "__schema": "InferenceTypeSchema",
2352
- "location": {
2353
- "filePath": "new-component-helper.main.runtime.ts",
2354
- "line": 227,
2355
- "character": 3
2356
- },
2357
- "type": "RuntimeDefinition"
2358
- },
2359
- "isOptional": true,
2360
- "defaultValue": "MainRuntime"
2361
- },
2362
- {
2363
- "__schema": "FunctionLikeSchema",
2364
- "location": {
2365
- "filePath": "new-component-helper.main.runtime.ts",
2366
- "line": 228,
2367
- "character": 3
2368
- },
2369
- "signature": "(method) NewComponentHelperMain.provider([workspace, tracker]: [Workspace, TrackerMain], config: any, _: any, harmony: Harmony): Promise<NewComponentHelperMain>",
2370
- "name": "provider",
2371
- "params": [
2372
- {
2373
- "__schema": "ParameterSchema",
2374
- "location": {
2375
- "filePath": "new-component-helper.main.runtime.ts",
2376
- "line": 228,
2377
- "character": 25
2378
- },
2379
- "name": "[ workspace, tracker ]",
2380
- "type": {
2381
- "__schema": "TupleTypeSchema",
2382
- "location": {
2383
- "filePath": "new-component-helper.main.runtime.ts",
2384
- "line": 228,
2385
- "character": 47
2386
- },
2387
- "elements": [
2388
- {
2389
- "__schema": "TypeRefSchema",
2390
- "location": {
2391
- "filePath": "new-component-helper.main.runtime.ts",
2392
- "line": 228,
2393
- "character": 48
2394
- },
2395
- "name": "Workspace"
2396
- },
2397
- {
2398
- "__schema": "TypeRefSchema",
2399
- "location": {
2400
- "filePath": "new-component-helper.main.runtime.ts",
2401
- "line": 228,
2402
- "character": 59
2403
- },
2404
- "name": "TrackerMain"
2405
- }
2406
- ]
2407
- },
2408
- "isOptional": false,
2409
- "isSpread": false
2410
- },
2411
- {
2412
- "__schema": "ParameterSchema",
2413
- "location": {
2414
- "filePath": "new-component-helper.main.runtime.ts",
2415
- "line": 228,
2416
- "character": 73
2417
- },
2418
- "name": "config",
2419
- "type": {
2420
- "__schema": "InferenceTypeSchema",
2421
- "location": {
2422
- "filePath": "new-component-helper.main.runtime.ts",
2423
- "line": 228,
2424
- "character": 73
2425
- },
2426
- "type": "any"
2427
- },
2428
- "isOptional": false,
2429
- "isSpread": false
2430
- },
2431
- {
2432
- "__schema": "ParameterSchema",
2433
- "location": {
2434
- "filePath": "new-component-helper.main.runtime.ts",
2435
- "line": 228,
2436
- "character": 81
2437
- },
2438
- "name": "_",
2439
- "type": {
2440
- "__schema": "InferenceTypeSchema",
2441
- "location": {
2442
- "filePath": "new-component-helper.main.runtime.ts",
2443
- "line": 228,
2444
- "character": 81
2445
- },
2446
- "type": "any"
2447
- },
2448
- "isOptional": false,
2449
- "isSpread": false
2450
- },
2451
- {
2452
- "__schema": "ParameterSchema",
2453
- "location": {
2454
- "filePath": "new-component-helper.main.runtime.ts",
2455
- "line": 228,
2456
- "character": 84
2457
- },
2458
- "name": "harmony",
2459
- "type": {
2460
- "__schema": "TypeRefSchema",
2461
- "location": {
2462
- "filePath": "new-component-helper.main.runtime.ts",
2463
- "line": 228,
2464
- "character": 93
2465
- },
2466
- "name": "Harmony"
2467
- },
2468
- "isOptional": false,
2469
- "isSpread": false
2470
- }
2471
- ],
2472
- "returnType": {
2473
- "__schema": "InferenceTypeSchema",
2474
- "location": {
2475
- "filePath": "new-component-helper.main.runtime.ts",
2476
- "line": 228,
2477
- "character": 3
2478
- },
2479
- "type": "Promise<NewComponentHelperMain>"
2480
- },
2481
- "modifiers": [
2482
- "static",
2483
- "async"
2484
- ]
2485
- }
2486
- ],
2487
- "extendsNodes": [],
2488
- "implementNodes": []
2489
- }
2490
- ],
2491
- "internals": [
2492
- {
2493
- "__schema": "ModuleSchema",
2494
- "location": {
2495
- "filePath": "new-component-helper.main.runtime.ts",
2496
- "line": 21,
2497
- "character": 1
2498
- },
2499
- "exports": [
2500
- {
2501
- "__schema": "VariableLikeSchema",
2502
- "location": {
2503
- "filePath": "new-component-helper.main.runtime.ts",
2504
- "line": 21,
2505
- "character": 7
2506
- },
2507
- "signature": "const aspectsConfigToIgnore: string[]",
2508
- "name": "aspectsConfigToIgnore",
2509
- "type": {
2510
- "__schema": "TypeArraySchema",
2511
- "location": {
2512
- "filePath": "new-component-helper.main.runtime.ts",
2513
- "line": 21,
2514
- "character": 30
2515
- },
2516
- "type": {
2517
- "__schema": "KeywordTypeSchema",
2518
- "location": {
2519
- "filePath": "new-component-helper.main.runtime.ts",
2520
- "line": 21,
2521
- "character": 30
2522
- },
2523
- "name": "string"
2524
- }
2525
- },
2526
- "isOptional": false,
2527
- "defaultValue": "[PkgAspect.id, RenamingAspect.id]"
2528
- }
2529
- ],
2530
- "internals": []
2531
- },
2532
- {
2533
- "__schema": "TypeSchema",
2534
- "location": {
2535
- "filePath": "new-component-helper.main.runtime.ts",
2536
- "line": 22,
2537
- "character": 1
2538
- },
2539
- "signature": "type File = {\n path: string;\n content: string;\n}",
2540
- "name": "File",
2541
- "type": {
2542
- "__schema": "TypeLiteralSchema",
2543
- "location": {
2544
- "filePath": "new-component-helper.main.runtime.ts",
2545
- "line": 22,
2546
- "character": 13
2547
- },
2548
- "members": [
2549
- {
2550
- "__schema": "VariableLikeSchema",
2551
- "location": {
2552
- "filePath": "new-component-helper.main.runtime.ts",
2553
- "line": 22,
2554
- "character": 15
2555
- },
2556
- "signature": "(property) path: string",
2557
- "name": "path",
2558
- "type": {
2559
- "__schema": "KeywordTypeSchema",
2560
- "location": {
2561
- "filePath": "new-component-helper.main.runtime.ts",
2562
- "line": 22,
2563
- "character": 21
2564
- },
2565
- "name": "string"
2566
- },
2567
- "isOptional": false
2568
- },
2569
- {
2570
- "__schema": "VariableLikeSchema",
2571
- "location": {
2572
- "filePath": "new-component-helper.main.runtime.ts",
2573
- "line": 22,
2574
- "character": 29
2575
- },
2576
- "signature": "(property) content: string",
2577
- "name": "content",
2578
- "type": {
2579
- "__schema": "KeywordTypeSchema",
2580
- "location": {
2581
- "filePath": "new-component-helper.main.runtime.ts",
2582
- "line": 22,
2583
- "character": 38
2584
- },
2585
- "name": "string"
2586
- },
2587
- "isOptional": false
2588
- }
2589
- ]
2590
- }
2591
- },
2592
- {
2593
- "__schema": "UnImplementedSchema",
2594
- "location": {
2595
- "filePath": "new-component-helper.main.runtime.ts",
2596
- "line": 233,
2597
- "character": 1
2598
- },
2599
- "name": "NewComponentHelperAspect.addRuntime(NewComponentHelperMain);",
2600
- "type": "ExpressionStatement"
2601
- }
2602
- ]
2603
- },
2604
- {
2605
- "__schema": "ModuleSchema",
2606
- "location": {
2607
- "filePath": "new-component-helper.aspect.ts",
2608
- "line": 1,
2609
- "character": 1
2610
- },
2611
- "exports": [
2612
- {
2613
- "__schema": "VariableLikeSchema",
2614
- "location": {
2615
- "filePath": "new-component-helper.aspect.ts",
2616
- "line": 3,
2617
- "character": 14
2618
- },
2619
- "signature": "const NewComponentHelperAspect: Aspect",
2620
- "name": "NewComponentHelperAspect",
2621
- "type": {
2622
- "__schema": "TypeRefSchema",
2623
- "location": {
2624
- "filePath": "new-component-helper.aspect.ts",
2625
- "line": 3,
2626
- "character": 14
2627
- },
2628
- "name": "Aspect",
2629
- "componentId": {
2630
- "scope": "teambit.harmony",
2631
- "name": "harmony",
2632
- "version": "0.4.6"
2633
- }
2634
- },
2635
- "isOptional": false,
2636
- "defaultValue": "Aspect.create({\n id: 'teambit.component/new-component-helper',\n})"
2637
- }
2638
- ],
2639
- "internals": []
2640
- }
2641
- ],
2642
- "componentId": {
2643
- "scope": "teambit.component",
2644
- "name": "new-component-helper",
2645
- "version": "1.0.510"
2646
- },
2647
- "taggedModuleExports": []
2648
- }