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