@teambit/formatter 1.0.516 → 1.0.517

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