@teambit/schema 1.0.256 → 1.0.258

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.
@@ -14,2040 +14,184 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "InterfaceSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "parser.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 3,
21
- "character": 1
21
+ "character": 15
22
22
  },
23
- "signature": "interface Parser",
24
23
  "name": "Parser",
25
- "members": [
26
- {
27
- "__schema": "VariableLikeSchema",
28
- "location": {
29
- "filePath": "parser.ts",
30
- "line": 7,
31
- "character": 3
32
- },
33
- "doc": {
34
- "__schema": "DocSchema",
35
- "location": {
36
- "filePath": "parser.ts",
37
- "line": 4,
38
- "character": 3
39
- },
40
- "raw": "/**\n * regex to apply on which components compiler applies.\n */",
41
- "comment": "regex to apply on which components compiler applies."
42
- },
43
- "signature": "(property) Parser.extension: RegExp",
44
- "name": "extension",
45
- "type": {
46
- "__schema": "TypeRefSchema",
47
- "location": {
48
- "filePath": "parser.ts",
49
- "line": 7,
50
- "character": 14
51
- },
52
- "name": "RegExp"
53
- },
54
- "isOptional": false
24
+ "exportNode": {
25
+ "__schema": "TypeRefSchema",
26
+ "location": {
27
+ "filePath": "index.ts",
28
+ "line": 3,
29
+ "character": 15
55
30
  },
56
- {
57
- "__schema": "FunctionLikeSchema",
58
- "location": {
59
- "filePath": "parser.ts",
60
- "line": 12,
61
- "character": 3
62
- },
63
- "doc": {
64
- "__schema": "DocSchema",
65
- "location": {
66
- "filePath": "parser.ts",
67
- "line": 9,
68
- "character": 3
69
- },
70
- "raw": "/**\n * parse a module.\n */",
71
- "comment": "parse a module."
72
- },
73
- "signature": "(method) Parser.parseModule(modulePath: string, content?: string): Export[]",
74
- "name": "parseModule",
75
- "params": [
76
- {
77
- "__schema": "ParameterSchema",
78
- "location": {
79
- "filePath": "parser.ts",
80
- "line": 12,
81
- "character": 15
82
- },
83
- "name": "modulePath",
84
- "type": {
85
- "__schema": "KeywordTypeSchema",
86
- "location": {
87
- "filePath": "parser.ts",
88
- "line": 12,
89
- "character": 27
90
- },
91
- "name": "string"
92
- },
93
- "isOptional": false,
94
- "isSpread": false
95
- },
96
- {
97
- "__schema": "ParameterSchema",
98
- "location": {
99
- "filePath": "parser.ts",
100
- "line": 12,
101
- "character": 35
102
- },
103
- "name": "content",
104
- "type": {
105
- "__schema": "KeywordTypeSchema",
106
- "location": {
107
- "filePath": "parser.ts",
108
- "line": 12,
109
- "character": 45
110
- },
111
- "name": "string"
112
- },
113
- "isOptional": true,
114
- "isSpread": false
115
- }
116
- ],
117
- "returnType": {
118
- "__schema": "TypeArraySchema",
119
- "location": {
120
- "filePath": "parser.ts",
121
- "line": 12,
122
- "character": 54
123
- },
124
- "type": {
125
- "__schema": "TypeRefSchema",
126
- "location": {
127
- "filePath": "parser.ts",
128
- "line": 12,
129
- "character": 54
130
- },
131
- "name": "Export",
132
- "componentId": {
133
- "scope": "teambit.semantics",
134
- "name": "entities/semantic-schema",
135
- "version": "0.0.68"
136
- }
137
- }
138
- },
139
- "modifiers": []
140
- }
141
- ],
142
- "extendsNodes": []
31
+ "name": "Parser"
32
+ }
143
33
  },
144
34
  {
145
- "__schema": "InterfaceSchema",
35
+ "__schema": "ExportSchema",
146
36
  "location": {
147
- "filePath": "schema-extractor.ts",
148
- "line": 5,
149
- "character": 1
37
+ "filePath": "index.ts",
38
+ "line": 4,
39
+ "character": 15
150
40
  },
151
- "signature": "interface SchemaExtractor",
152
41
  "name": "SchemaExtractor",
153
- "members": [
154
- {
155
- "__schema": "FunctionLikeSchema",
156
- "location": {
157
- "filePath": "schema-extractor.ts",
158
- "line": 9,
159
- "character": 3
160
- },
161
- "doc": {
162
- "__schema": "DocSchema",
163
- "location": {
164
- "filePath": "schema-extractor.ts",
165
- "line": 6,
166
- "character": 3
167
- },
168
- "raw": "/**\n * extract a semantic schema from a component.\n */",
169
- "comment": "extract a semantic schema from a component."
170
- },
171
- "signature": "(method) SchemaExtractor.extract(component: Component, options?: SchemaExtractorOptions): Promise<APISchema>",
172
- "name": "extract",
173
- "params": [
174
- {
175
- "__schema": "ParameterSchema",
176
- "location": {
177
- "filePath": "schema-extractor.ts",
178
- "line": 9,
179
- "character": 11
180
- },
181
- "name": "component",
182
- "type": {
183
- "__schema": "TypeRefSchema",
184
- "location": {
185
- "filePath": "schema-extractor.ts",
186
- "line": 9,
187
- "character": 22
188
- },
189
- "name": "Component",
190
- "componentId": {
191
- "scope": "teambit.component",
192
- "name": "component"
193
- }
194
- },
195
- "isOptional": false,
196
- "isSpread": false
197
- },
198
- {
199
- "__schema": "ParameterSchema",
200
- "location": {
201
- "filePath": "schema-extractor.ts",
202
- "line": 9,
203
- "character": 33
204
- },
205
- "name": "options",
206
- "type": {
207
- "__schema": "TypeRefSchema",
208
- "location": {
209
- "filePath": "schema-extractor.ts",
210
- "line": 9,
211
- "character": 43
212
- },
213
- "name": "SchemaExtractorOptions"
214
- },
215
- "isOptional": true,
216
- "isSpread": false
217
- }
218
- ],
219
- "returnType": {
220
- "__schema": "TypeRefSchema",
221
- "location": {
222
- "filePath": "schema-extractor.ts",
223
- "line": 9,
224
- "character": 68
225
- },
226
- "name": "Promise",
227
- "typeArgs": [
228
- {
229
- "__schema": "TypeRefSchema",
230
- "location": {
231
- "filePath": "schema-extractor.ts",
232
- "line": 9,
233
- "character": 76
234
- },
235
- "name": "APISchema",
236
- "componentId": {
237
- "scope": "teambit.semantics",
238
- "name": "entities/semantic-schema",
239
- "version": "0.0.68"
240
- }
241
- }
242
- ]
243
- },
244
- "modifiers": []
42
+ "exportNode": {
43
+ "__schema": "TypeRefSchema",
44
+ "location": {
45
+ "filePath": "index.ts",
46
+ "line": 4,
47
+ "character": 15
245
48
  },
246
- {
247
- "__schema": "FunctionLikeSchema",
248
- "location": {
249
- "filePath": "schema-extractor.ts",
250
- "line": 16,
251
- "character": 3
252
- },
253
- "doc": {
254
- "__schema": "DocSchema",
255
- "location": {
256
- "filePath": "schema-extractor.ts",
257
- "line": 10,
258
- "character": 3
259
- },
260
- "raw": "/**\n * release resources if no schemas are needed for this process.\n * for typescript, this will kill the tsserver process.\n * for performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\n * components will be very slow.\n */",
261
- "comment": "release resources if no schemas are needed for this process.\nfor typescript, this will kill the tsserver process.\nfor performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\ncomponents will be very slow."
262
- },
263
- "signature": "(method) SchemaExtractor.dispose(): void",
264
- "name": "dispose",
265
- "params": [],
266
- "returnType": {
267
- "__schema": "KeywordTypeSchema",
268
- "location": {
269
- "filePath": "schema-extractor.ts",
270
- "line": 16,
271
- "character": 14
272
- },
273
- "name": "void"
274
- },
275
- "modifiers": []
276
- }
277
- ],
278
- "extendsNodes": []
49
+ "name": "SchemaExtractor"
50
+ }
279
51
  },
280
52
  {
281
- "__schema": "TypeSchema",
53
+ "__schema": "ExportSchema",
282
54
  "location": {
283
- "filePath": "schema-extractor.ts",
284
- "line": 19,
285
- "character": 1
55
+ "filePath": "index.ts",
56
+ "line": 5,
57
+ "character": 15
286
58
  },
287
- "signature": "type SchemaExtractorOptions = {\n formatter?: Formatter | undefined;\n tsserverPath?: string | undefined;\n contextPath?: string | undefined;\n skipInternals?: boolean | undefined;\n}",
288
59
  "name": "SchemaExtractorOptions",
289
- "type": {
290
- "__schema": "TypeLiteralSchema",
60
+ "exportNode": {
61
+ "__schema": "TypeRefSchema",
291
62
  "location": {
292
- "filePath": "schema-extractor.ts",
293
- "line": 19,
294
- "character": 38
63
+ "filePath": "index.ts",
64
+ "line": 5,
65
+ "character": 15
295
66
  },
296
- "members": [
297
- {
298
- "__schema": "VariableLikeSchema",
299
- "location": {
300
- "filePath": "schema-extractor.ts",
301
- "line": 20,
302
- "character": 3
303
- },
304
- "signature": "(property) formatter?: Formatter | undefined",
305
- "name": "formatter",
306
- "type": {
307
- "__schema": "TypeRefSchema",
308
- "location": {
309
- "filePath": "schema-extractor.ts",
310
- "line": 20,
311
- "character": 15
312
- },
313
- "name": "Formatter",
314
- "componentId": {
315
- "scope": "teambit.defender",
316
- "name": "formatter"
317
- }
318
- },
319
- "isOptional": true
320
- },
321
- {
322
- "__schema": "VariableLikeSchema",
323
- "location": {
324
- "filePath": "schema-extractor.ts",
325
- "line": 21,
326
- "character": 3
327
- },
328
- "signature": "(property) tsserverPath?: string | undefined",
329
- "name": "tsserverPath",
330
- "type": {
331
- "__schema": "KeywordTypeSchema",
332
- "location": {
333
- "filePath": "schema-extractor.ts",
334
- "line": 21,
335
- "character": 18
336
- },
337
- "name": "string"
338
- },
339
- "isOptional": true
340
- },
341
- {
342
- "__schema": "VariableLikeSchema",
343
- "location": {
344
- "filePath": "schema-extractor.ts",
345
- "line": 22,
346
- "character": 3
347
- },
348
- "signature": "(property) contextPath?: string | undefined",
349
- "name": "contextPath",
350
- "type": {
351
- "__schema": "KeywordTypeSchema",
352
- "location": {
353
- "filePath": "schema-extractor.ts",
354
- "line": 22,
355
- "character": 17
356
- },
357
- "name": "string"
358
- },
359
- "isOptional": true
360
- },
361
- {
362
- "__schema": "VariableLikeSchema",
363
- "location": {
364
- "filePath": "schema-extractor.ts",
365
- "line": 23,
366
- "character": 3
367
- },
368
- "signature": "(property) skipInternals?: boolean | undefined",
369
- "name": "skipInternals",
370
- "type": {
371
- "__schema": "KeywordTypeSchema",
372
- "location": {
373
- "filePath": "schema-extractor.ts",
374
- "line": 23,
375
- "character": 19
376
- },
377
- "name": "boolean"
378
- },
379
- "isOptional": true
380
- }
381
- ]
67
+ "name": "SchemaExtractorOptions"
382
68
  }
383
69
  },
384
70
  {
385
- "__schema": "ClassSchema",
71
+ "__schema": "ExportSchema",
386
72
  "location": {
387
- "filePath": "schema.task.ts",
388
- "line": 22,
389
- "character": 1
390
- },
391
- "doc": {
392
- "__schema": "DocSchema",
393
- "location": {
394
- "filePath": "schema.task.ts",
395
- "line": 19,
396
- "character": 1
397
- },
398
- "raw": "/**\n * extract and persist the component schema as a json file\n */",
399
- "comment": "extract and persist the component schema as a json file"
73
+ "filePath": "index.ts",
74
+ "line": 7,
75
+ "character": 3
400
76
  },
401
- "signature": "class SchemaTask",
402
77
  "name": "SchemaTask",
403
- "members": [
404
- {
405
- "__schema": "VariableLikeSchema",
406
- "location": {
407
- "filePath": "schema.task.ts",
408
- "line": 23,
409
- "character": 3
410
- },
411
- "signature": "(property) SchemaTask.name: \"ExtractSchema\"",
412
- "name": "name",
413
- "type": {
414
- "__schema": "InferenceTypeSchema",
415
- "location": {
416
- "filePath": "schema.task.ts",
417
- "line": 23,
418
- "character": 3
419
- },
420
- "type": "\"ExtractSchema\""
421
- },
422
- "isOptional": true,
423
- "defaultValue": "SCHEMA_TASK_NAME"
424
- },
425
- {
426
- "__schema": "VariableLikeSchema",
427
- "location": {
428
- "filePath": "schema.task.ts",
429
- "line": 24,
430
- "character": 3
431
- },
432
- "signature": "(property) SchemaTask.location: TaskLocation",
433
- "name": "location",
434
- "type": {
435
- "__schema": "TypeRefSchema",
436
- "location": {
437
- "filePath": "schema.task.ts",
438
- "line": 24,
439
- "character": 3
440
- },
441
- "name": "TaskLocation",
442
- "componentId": {
443
- "scope": "teambit.pipelines",
444
- "name": "builder"
445
- }
446
- },
447
- "isOptional": true,
448
- "defaultValue": "'end'"
449
- },
450
- {
451
- "__schema": "VariableLikeSchema",
452
- "location": {
453
- "filePath": "schema.task.ts",
454
- "line": 25,
455
- "character": 3
456
- },
457
- "signature": "(property) SchemaTask.description: \"extract api schema for a set of components\"",
458
- "name": "description",
459
- "type": {
460
- "__schema": "InferenceTypeSchema",
461
- "location": {
462
- "filePath": "schema.task.ts",
463
- "line": 25,
464
- "character": 3
465
- },
466
- "type": "\"extract api schema for a set of components\""
467
- },
468
- "isOptional": true,
469
- "defaultValue": "'extract api schema for a set of components'"
470
- },
471
- {
472
- "__schema": "ConstructorSchema",
473
- "location": {
474
- "filePath": "schema.task.ts",
475
- "line": 27,
476
- "character": 3
477
- },
478
- "signature": "constructor SchemaTask(aspectId: string, schema: SchemaMain, logger: Logger): SchemaTask",
479
- "name": "constructor",
480
- "params": [
481
- {
482
- "__schema": "ParameterSchema",
483
- "location": {
484
- "filePath": "schema.task.ts",
485
- "line": 27,
486
- "character": 15
487
- },
488
- "name": "aspectId",
489
- "type": {
490
- "__schema": "KeywordTypeSchema",
491
- "location": {
492
- "filePath": "schema.task.ts",
493
- "line": 27,
494
- "character": 34
495
- },
496
- "name": "string"
497
- },
498
- "isOptional": false,
499
- "isSpread": false
500
- },
501
- {
502
- "__schema": "ParameterSchema",
503
- "location": {
504
- "filePath": "schema.task.ts",
505
- "line": 27,
506
- "character": 42
507
- },
508
- "name": "schema",
509
- "type": {
510
- "__schema": "TypeRefSchema",
511
- "location": {
512
- "filePath": "schema.task.ts",
513
- "line": 27,
514
- "character": 58
515
- },
516
- "name": "SchemaMain"
517
- },
518
- "isOptional": false,
519
- "isSpread": false
520
- },
521
- {
522
- "__schema": "ParameterSchema",
523
- "location": {
524
- "filePath": "schema.task.ts",
525
- "line": 27,
526
- "character": 70
527
- },
528
- "name": "logger",
529
- "type": {
530
- "__schema": "TypeRefSchema",
531
- "location": {
532
- "filePath": "schema.task.ts",
533
- "line": 27,
534
- "character": 86
535
- },
536
- "name": "Logger",
537
- "componentId": {
538
- "scope": "teambit.harmony",
539
- "name": "logger"
540
- }
541
- },
542
- "isOptional": false,
543
- "isSpread": false
544
- }
545
- ],
546
- "returnType": {
547
- "__schema": "ThisTypeSchema",
548
- "location": {
549
- "filePath": "schema.task.ts",
550
- "line": 22,
551
- "character": 1
552
- },
553
- "name": "SchemaTask"
554
- },
555
- "modifiers": []
78
+ "exportNode": {
79
+ "__schema": "TypeRefSchema",
80
+ "location": {
81
+ "filePath": "index.ts",
82
+ "line": 7,
83
+ "character": 3
556
84
  },
557
- {
558
- "__schema": "FunctionLikeSchema",
559
- "location": {
560
- "filePath": "schema.task.ts",
561
- "line": 29,
562
- "character": 3
563
- },
564
- "signature": "(method) SchemaTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
565
- "name": "execute",
566
- "params": [
567
- {
568
- "__schema": "ParameterSchema",
569
- "location": {
570
- "filePath": "schema.task.ts",
571
- "line": 29,
572
- "character": 17
573
- },
574
- "name": "context",
575
- "type": {
576
- "__schema": "TypeRefSchema",
577
- "location": {
578
- "filePath": "schema.task.ts",
579
- "line": 29,
580
- "character": 26
581
- },
582
- "name": "BuildContext",
583
- "componentId": {
584
- "scope": "teambit.pipelines",
585
- "name": "builder"
586
- }
587
- },
588
- "isOptional": false,
589
- "isSpread": false
590
- }
591
- ],
592
- "returnType": {
593
- "__schema": "TypeRefSchema",
594
- "location": {
595
- "filePath": "schema.task.ts",
596
- "line": 29,
597
- "character": 41
598
- },
599
- "name": "Promise",
600
- "typeArgs": [
601
- {
602
- "__schema": "TypeRefSchema",
603
- "location": {
604
- "filePath": "schema.task.ts",
605
- "line": 29,
606
- "character": 49
607
- },
608
- "name": "BuiltTaskResult",
609
- "componentId": {
610
- "scope": "teambit.pipelines",
611
- "name": "builder"
612
- }
613
- }
614
- ]
615
- },
616
- "modifiers": [
617
- "async"
618
- ]
619
- }
620
- ],
621
- "extendsNodes": [],
622
- "implementNodes": [
623
- {
624
- "__schema": "ExpressionWithTypeArgumentsSchema",
625
- "location": {
626
- "filePath": "schema.task.ts",
627
- "line": 22,
628
- "character": 36
629
- },
630
- "name": "implements BuildTask",
631
- "typeArgs": [],
632
- "expression": {
633
- "__schema": "TypeRefSchema",
634
- "location": {
635
- "filePath": "schema.task.ts",
636
- "line": 22,
637
- "character": 36
638
- },
639
- "name": "BuildTask",
640
- "componentId": {
641
- "_legacy": {
642
- "scope": "teambit.semantics",
643
- "name": "schema",
644
- "version": "1.0.256"
645
- },
646
- "_scope": "teambit.semantics"
647
- }
648
- }
649
- }
650
- ]
85
+ "name": "SchemaTask"
86
+ }
651
87
  },
652
88
  {
653
- "__schema": "VariableLikeSchema",
89
+ "__schema": "ExportSchema",
654
90
  "location": {
655
- "filePath": "schema.task.ts",
656
- "line": 17,
657
- "character": 14
91
+ "filePath": "index.ts",
92
+ "line": 8,
93
+ "character": 3
658
94
  },
659
- "signature": "const SCHEMA_ARTIFACT_NAME: \"schema\"",
660
95
  "name": "SCHEMA_ARTIFACT_NAME",
661
- "type": {
662
- "__schema": "InferenceTypeSchema",
96
+ "exportNode": {
97
+ "__schema": "TypeRefSchema",
663
98
  "location": {
664
- "filePath": "schema.task.ts",
665
- "line": 17,
666
- "character": 14
99
+ "filePath": "index.ts",
100
+ "line": 8,
101
+ "character": 3
667
102
  },
668
- "type": "\"schema\""
669
- },
670
- "isOptional": false,
671
- "defaultValue": "'schema'"
103
+ "name": "SCHEMA_ARTIFACT_NAME"
104
+ }
672
105
  },
673
106
  {
674
- "__schema": "VariableLikeSchema",
107
+ "__schema": "ExportSchema",
675
108
  "location": {
676
- "filePath": "schema.task.ts",
677
- "line": 16,
678
- "character": 14
109
+ "filePath": "index.ts",
110
+ "line": 9,
111
+ "character": 3
679
112
  },
680
- "signature": "const SCHEMA_TASK_NAME: \"ExtractSchema\"",
681
113
  "name": "SCHEMA_TASK_NAME",
682
- "type": {
683
- "__schema": "InferenceTypeSchema",
114
+ "exportNode": {
115
+ "__schema": "TypeRefSchema",
684
116
  "location": {
685
- "filePath": "schema.task.ts",
686
- "line": 16,
687
- "character": 14
117
+ "filePath": "index.ts",
118
+ "line": 9,
119
+ "character": 3
688
120
  },
689
- "type": "\"ExtractSchema\""
690
- },
691
- "isOptional": false,
692
- "defaultValue": "'ExtractSchema'"
121
+ "name": "SCHEMA_TASK_NAME"
122
+ }
693
123
  },
694
124
  {
695
- "__schema": "FunctionLikeSchema",
125
+ "__schema": "ExportSchema",
696
126
  "location": {
697
- "filePath": "schema.task.ts",
698
- "line": 73,
699
- "character": 1
127
+ "filePath": "index.ts",
128
+ "line": 10,
129
+ "character": 3
700
130
  },
701
- "signature": "function getSchemaArtifactDef(): ArtifactDefinition",
702
131
  "name": "getSchemaArtifactDef",
703
- "params": [],
704
- "returnType": {
132
+ "exportNode": {
705
133
  "__schema": "TypeRefSchema",
706
134
  "location": {
707
- "filePath": "schema.task.ts",
708
- "line": 73,
709
- "character": 1
135
+ "filePath": "index.ts",
136
+ "line": 10,
137
+ "character": 3
710
138
  },
711
- "name": "ArtifactDefinition",
712
- "componentId": {
713
- "scope": "teambit.pipelines",
714
- "name": "builder"
715
- }
716
- },
717
- "modifiers": [
718
- "export"
719
- ]
139
+ "name": "getSchemaArtifactDef"
140
+ }
720
141
  },
721
142
  {
722
- "__schema": "FunctionLikeSchema",
143
+ "__schema": "ExportSchema",
723
144
  "location": {
724
- "filePath": "schema.task.ts",
725
- "line": 69,
726
- "character": 1
145
+ "filePath": "index.ts",
146
+ "line": 11,
147
+ "character": 3
727
148
  },
728
- "signature": "function getSchemaArtifactPath(): string",
729
149
  "name": "getSchemaArtifactPath",
730
- "params": [],
731
- "returnType": {
732
- "__schema": "InferenceTypeSchema",
150
+ "exportNode": {
151
+ "__schema": "TypeRefSchema",
733
152
  "location": {
734
- "filePath": "schema.task.ts",
735
- "line": 69,
736
- "character": 1
153
+ "filePath": "index.ts",
154
+ "line": 11,
155
+ "character": 3
737
156
  },
738
- "type": "string"
739
- },
740
- "modifiers": [
741
- "export"
742
- ]
157
+ "name": "getSchemaArtifactPath"
158
+ }
743
159
  },
744
160
  {
745
- "__schema": "InterfaceSchema",
161
+ "__schema": "ExportSchema",
746
162
  "location": {
747
- "filePath": "schema-env.ts",
748
- "line": 8,
749
- "character": 1
163
+ "filePath": "index.ts",
164
+ "line": 13,
165
+ "character": 15
750
166
  },
751
- "doc": {
752
- "__schema": "DocSchema",
167
+ "name": "SchemaEnv",
168
+ "exportNode": {
169
+ "__schema": "TypeRefSchema",
753
170
  "location": {
754
- "filePath": "schema-env.ts",
755
- "line": 4,
756
- "character": 1
171
+ "filePath": "index.ts",
172
+ "line": 13,
173
+ "character": 15
757
174
  },
758
- "raw": "/**\n * define a schema extractor to extract type information\n * and docs for your components.\n */",
759
- "comment": "define a schema extractor to extract type information\nand docs for your components."
760
- },
761
- "signature": "interface SchemaEnv",
762
- "name": "SchemaEnv",
763
- "members": [
764
- {
765
- "__schema": "FunctionLikeSchema",
766
- "location": {
767
- "filePath": "schema-env.ts",
768
- "line": 9,
769
- "character": 3
770
- },
771
- "signature": "(method) SchemaEnv.schemaExtractor(): EnvHandler<SchemaExtractor>",
772
- "name": "schemaExtractor",
773
- "params": [],
774
- "returnType": {
775
- "__schema": "TypeRefSchema",
776
- "location": {
777
- "filePath": "schema-env.ts",
778
- "line": 9,
779
- "character": 22
780
- },
781
- "name": "EnvHandler",
782
- "componentId": {
783
- "scope": "teambit.envs",
784
- "name": "envs"
785
- },
786
- "typeArgs": [
787
- {
788
- "__schema": "TypeRefSchema",
789
- "location": {
790
- "filePath": "schema-env.ts",
791
- "line": 9,
792
- "character": 33
793
- },
794
- "name": "SchemaExtractor"
795
- }
796
- ]
797
- },
798
- "modifiers": []
799
- }
800
- ],
801
- "extendsNodes": []
175
+ "name": "SchemaEnv"
176
+ }
802
177
  },
803
178
  {
804
- "__schema": "ClassSchema",
179
+ "__schema": "ExportSchema",
805
180
  "location": {
806
- "filePath": "schema.main.runtime.ts",
807
- "line": 44,
808
- "character": 1
809
- },
810
- "doc": {
811
- "__schema": "DocSchema",
812
- "location": {
813
- "filePath": "schema.main.runtime.ts",
814
- "line": 41,
815
- "character": 1
816
- },
817
- "raw": "/**\n * extension for extracting component schemas.\n */",
818
- "comment": "extension for extracting component schemas."
181
+ "filePath": "index.ts",
182
+ "line": 14,
183
+ "character": 15
819
184
  },
820
- "signature": "class SchemaMain",
821
185
  "name": "SchemaMain",
822
- "members": [
823
- {
824
- "__schema": "ConstructorSchema",
825
- "location": {
826
- "filePath": "schema.main.runtime.ts",
827
- "line": 45,
828
- "character": 3
829
- },
830
- "signature": "constructor SchemaMain(parserSlot: ParserSlot, envs: EnvsMain, config: SchemaConfig, builder: BuilderMain, workspace: Workspace, logger: Logger): SchemaMain",
831
- "name": "constructor",
832
- "params": [
833
- {
834
- "__schema": "ParameterSchema",
835
- "location": {
836
- "filePath": "schema.main.runtime.ts",
837
- "line": 49,
838
- "character": 5
839
- },
840
- "name": "parserSlot",
841
- "type": {
842
- "__schema": "TypeRefSchema",
843
- "location": {
844
- "filePath": "schema.main.runtime.ts",
845
- "line": 49,
846
- "character": 25
847
- },
848
- "name": "ParserSlot",
849
- "internalFilePath": "schema.main.runtime.ts"
850
- },
851
- "isOptional": false,
852
- "isSpread": false
853
- },
854
- {
855
- "__schema": "ParameterSchema",
856
- "location": {
857
- "filePath": "schema.main.runtime.ts",
858
- "line": 51,
859
- "character": 5
860
- },
861
- "name": "envs",
862
- "type": {
863
- "__schema": "TypeRefSchema",
864
- "location": {
865
- "filePath": "schema.main.runtime.ts",
866
- "line": 51,
867
- "character": 19
868
- },
869
- "name": "EnvsMain",
870
- "componentId": {
871
- "scope": "teambit.envs",
872
- "name": "envs"
873
- }
874
- },
875
- "isOptional": false,
876
- "isSpread": false
877
- },
878
- {
879
- "__schema": "ParameterSchema",
880
- "location": {
881
- "filePath": "schema.main.runtime.ts",
882
- "line": 53,
883
- "character": 5
884
- },
885
- "name": "config",
886
- "type": {
887
- "__schema": "TypeRefSchema",
888
- "location": {
889
- "filePath": "schema.main.runtime.ts",
890
- "line": 53,
891
- "character": 21
892
- },
893
- "name": "SchemaConfig",
894
- "internalFilePath": "schema.main.runtime.ts"
895
- },
896
- "isOptional": false,
897
- "isSpread": false
898
- },
899
- {
900
- "__schema": "ParameterSchema",
901
- "location": {
902
- "filePath": "schema.main.runtime.ts",
903
- "line": 55,
904
- "character": 5
905
- },
906
- "name": "builder",
907
- "type": {
908
- "__schema": "TypeRefSchema",
909
- "location": {
910
- "filePath": "schema.main.runtime.ts",
911
- "line": 55,
912
- "character": 22
913
- },
914
- "name": "BuilderMain",
915
- "componentId": {
916
- "scope": "teambit.pipelines",
917
- "name": "builder"
918
- }
919
- },
920
- "isOptional": false,
921
- "isSpread": false
922
- },
923
- {
924
- "__schema": "ParameterSchema",
925
- "location": {
926
- "filePath": "schema.main.runtime.ts",
927
- "line": 57,
928
- "character": 5
929
- },
930
- "name": "workspace",
931
- "type": {
932
- "__schema": "TypeRefSchema",
933
- "location": {
934
- "filePath": "schema.main.runtime.ts",
935
- "line": 57,
936
- "character": 24
937
- },
938
- "name": "Workspace",
939
- "componentId": {
940
- "scope": "teambit.workspace",
941
- "name": "workspace"
942
- }
943
- },
944
- "isOptional": false,
945
- "isSpread": false
946
- },
947
- {
948
- "__schema": "ParameterSchema",
949
- "location": {
950
- "filePath": "schema.main.runtime.ts",
951
- "line": 59,
952
- "character": 5
953
- },
954
- "name": "logger",
955
- "type": {
956
- "__schema": "TypeRefSchema",
957
- "location": {
958
- "filePath": "schema.main.runtime.ts",
959
- "line": 59,
960
- "character": 21
961
- },
962
- "name": "Logger",
963
- "componentId": {
964
- "scope": "teambit.harmony",
965
- "name": "logger"
966
- }
967
- },
968
- "isOptional": false,
969
- "isSpread": false
970
- }
971
- ],
972
- "returnType": {
973
- "__schema": "ThisTypeSchema",
974
- "location": {
975
- "filePath": "schema.main.runtime.ts",
976
- "line": 44,
977
- "character": 1
978
- },
979
- "name": "SchemaMain"
980
- },
981
- "modifiers": []
982
- },
983
- {
984
- "__schema": "FunctionLikeSchema",
985
- "location": {
986
- "filePath": "schema.main.runtime.ts",
987
- "line": 65,
988
- "character": 3
989
- },
990
- "doc": {
991
- "__schema": "DocSchema",
992
- "location": {
993
- "filePath": "schema.main.runtime.ts",
994
- "line": 62,
995
- "character": 3
996
- },
997
- "raw": "/**\n * get the default parser.\n */",
998
- "comment": "get the default parser."
999
- },
1000
- "signature": "(method) SchemaMain.getDefaultParser(): Parser",
1001
- "name": "getDefaultParser",
1002
- "params": [],
1003
- "returnType": {
1004
- "__schema": "TypeRefSchema",
1005
- "location": {
1006
- "filePath": "schema.main.runtime.ts",
1007
- "line": 65,
1008
- "character": 3
1009
- },
1010
- "name": "Parser"
1011
- },
1012
- "modifiers": []
1013
- },
1014
- {
1015
- "__schema": "FunctionLikeSchema",
1016
- "location": {
1017
- "filePath": "schema.main.runtime.ts",
1018
- "line": 69,
1019
- "character": 3
1020
- },
1021
- "signature": "(method) SchemaMain.registerSchemaClass(schema: SchemaNodeConstructor): void",
1022
- "name": "registerSchemaClass",
1023
- "params": [
1024
- {
1025
- "__schema": "ParameterSchema",
1026
- "location": {
1027
- "filePath": "schema.main.runtime.ts",
1028
- "line": 69,
1029
- "character": 23
1030
- },
1031
- "name": "schema",
1032
- "type": {
1033
- "__schema": "TypeRefSchema",
1034
- "location": {
1035
- "filePath": "schema.main.runtime.ts",
1036
- "line": 69,
1037
- "character": 31
1038
- },
1039
- "name": "SchemaNodeConstructor",
1040
- "componentId": {
1041
- "scope": "teambit.semantics",
1042
- "name": "entities/semantic-schema",
1043
- "version": "0.0.68"
1044
- }
1045
- },
1046
- "isOptional": false,
1047
- "isSpread": false
1048
- }
1049
- ],
1050
- "returnType": {
1051
- "__schema": "InferenceTypeSchema",
1052
- "location": {
1053
- "filePath": "schema.main.runtime.ts",
1054
- "line": 69,
1055
- "character": 3
1056
- },
1057
- "type": "void"
1058
- },
1059
- "modifiers": []
1060
- },
1061
- {
1062
- "__schema": "FunctionLikeSchema",
1063
- "location": {
1064
- "filePath": "schema.main.runtime.ts",
1065
- "line": 76,
1066
- "character": 3
1067
- },
1068
- "doc": {
1069
- "__schema": "DocSchema",
1070
- "location": {
1071
- "filePath": "schema.main.runtime.ts",
1072
- "line": 73,
1073
- "character": 3
1074
- },
1075
- "raw": "/**\n * parse a module into a component schema.\n */",
1076
- "comment": "parse a module into a component schema."
1077
- },
1078
- "signature": "(method) SchemaMain.parseModule(path: string, content?: string): Export[]",
1079
- "name": "parseModule",
1080
- "params": [
1081
- {
1082
- "__schema": "ParameterSchema",
1083
- "location": {
1084
- "filePath": "schema.main.runtime.ts",
1085
- "line": 76,
1086
- "character": 15
1087
- },
1088
- "name": "path",
1089
- "type": {
1090
- "__schema": "KeywordTypeSchema",
1091
- "location": {
1092
- "filePath": "schema.main.runtime.ts",
1093
- "line": 76,
1094
- "character": 21
1095
- },
1096
- "name": "string"
1097
- },
1098
- "isOptional": false,
1099
- "isSpread": false
1100
- },
1101
- {
1102
- "__schema": "ParameterSchema",
1103
- "location": {
1104
- "filePath": "schema.main.runtime.ts",
1105
- "line": 76,
1106
- "character": 29
1107
- },
1108
- "name": "content",
1109
- "type": {
1110
- "__schema": "KeywordTypeSchema",
1111
- "location": {
1112
- "filePath": "schema.main.runtime.ts",
1113
- "line": 76,
1114
- "character": 39
1115
- },
1116
- "name": "string"
1117
- },
1118
- "isOptional": true,
1119
- "isSpread": false
1120
- }
1121
- ],
1122
- "returnType": {
1123
- "__schema": "TypeArraySchema",
1124
- "location": {
1125
- "filePath": "schema.main.runtime.ts",
1126
- "line": 76,
1127
- "character": 48
1128
- },
1129
- "type": {
1130
- "__schema": "TypeRefSchema",
1131
- "location": {
1132
- "filePath": "schema.main.runtime.ts",
1133
- "line": 76,
1134
- "character": 48
1135
- },
1136
- "name": "Export",
1137
- "componentId": {
1138
- "scope": "teambit.semantics",
1139
- "name": "entities/semantic-schema",
1140
- "version": "0.0.68"
1141
- }
1142
- }
1143
- },
1144
- "modifiers": []
1145
- },
1146
- {
1147
- "__schema": "FunctionLikeSchema",
1148
- "location": {
1149
- "filePath": "schema.main.runtime.ts",
1150
- "line": 91,
1151
- "character": 3
1152
- },
1153
- "signature": "(method) SchemaMain.getSchemaExtractor(component: Component, tsserverPath?: string, contextPath?: string): SchemaExtractor",
1154
- "name": "getSchemaExtractor",
1155
- "params": [
1156
- {
1157
- "__schema": "ParameterSchema",
1158
- "location": {
1159
- "filePath": "schema.main.runtime.ts",
1160
- "line": 91,
1161
- "character": 22
1162
- },
1163
- "name": "component",
1164
- "type": {
1165
- "__schema": "TypeRefSchema",
1166
- "location": {
1167
- "filePath": "schema.main.runtime.ts",
1168
- "line": 91,
1169
- "character": 33
1170
- },
1171
- "name": "Component",
1172
- "componentId": {
1173
- "scope": "teambit.component",
1174
- "name": "component"
1175
- }
1176
- },
1177
- "isOptional": false,
1178
- "isSpread": false
1179
- },
1180
- {
1181
- "__schema": "ParameterSchema",
1182
- "location": {
1183
- "filePath": "schema.main.runtime.ts",
1184
- "line": 91,
1185
- "character": 44
1186
- },
1187
- "name": "tsserverPath",
1188
- "type": {
1189
- "__schema": "KeywordTypeSchema",
1190
- "location": {
1191
- "filePath": "schema.main.runtime.ts",
1192
- "line": 91,
1193
- "character": 59
1194
- },
1195
- "name": "string"
1196
- },
1197
- "isOptional": true,
1198
- "isSpread": false
1199
- },
1200
- {
1201
- "__schema": "ParameterSchema",
1202
- "location": {
1203
- "filePath": "schema.main.runtime.ts",
1204
- "line": 91,
1205
- "character": 67
1206
- },
1207
- "name": "contextPath",
1208
- "type": {
1209
- "__schema": "KeywordTypeSchema",
1210
- "location": {
1211
- "filePath": "schema.main.runtime.ts",
1212
- "line": 91,
1213
- "character": 81
1214
- },
1215
- "name": "string"
1216
- },
1217
- "isOptional": true,
1218
- "isSpread": false
1219
- }
1220
- ],
1221
- "returnType": {
1222
- "__schema": "TypeRefSchema",
1223
- "location": {
1224
- "filePath": "schema.main.runtime.ts",
1225
- "line": 91,
1226
- "character": 3
1227
- },
1228
- "name": "SchemaExtractor"
1229
- },
1230
- "modifiers": []
1231
- },
1232
- {
1233
- "__schema": "FunctionLikeSchema",
1234
- "location": {
1235
- "filePath": "schema.main.runtime.ts",
1236
- "line": 108,
1237
- "character": 3
1238
- },
1239
- "doc": {
1240
- "__schema": "DocSchema",
1241
- "location": {
1242
- "filePath": "schema.main.runtime.ts",
1243
- "line": 100,
1244
- "character": 3
1245
- },
1246
- "raw": "/**\n * get a schema of a component.\n * @param component target component.\n * @param shouldDisposeResourcesOnceDone for long-running processes, such as bit-start/bit-watch, this is not\n * relevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\n * not kept alive. otherwise, the process will never end.\n *\n */",
1247
- "comment": "get a schema of a component.",
1248
- "tags": [
1249
- {
1250
- "__schema": "PropertyLikeTagSchema",
1251
- "location": {
1252
- "filePath": "schema.main.runtime.ts",
1253
- "line": 102,
1254
- "character": 6
1255
- },
1256
- "name": "component",
1257
- "tagName": "parameter",
1258
- "comment": "target component."
1259
- },
1260
- {
1261
- "__schema": "PropertyLikeTagSchema",
1262
- "location": {
1263
- "filePath": "schema.main.runtime.ts",
1264
- "line": 103,
1265
- "character": 6
1266
- },
1267
- "name": "shouldDisposeResourcesOnceDone",
1268
- "tagName": "parameter",
1269
- "comment": "for long-running processes, such as bit-start/bit-watch, this is not\nrelevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\nnot kept alive. otherwise, the process will never end."
1270
- }
1271
- ]
1272
- },
1273
- "signature": "(method) SchemaMain.getSchema(component: Component, shouldDisposeResourcesOnceDone?: boolean, alwaysRunExtractor?: boolean, tsserverPath?: string, contextPath?: string, skipInternals?: boolean, schemaTransformers?: SchemaTransformer[], apiTransformers?: SchemaNodeTransformer[]): Promise<APISchema>",
1274
- "name": "getSchema",
1275
- "params": [
1276
- {
1277
- "__schema": "ParameterSchema",
1278
- "location": {
1279
- "filePath": "schema.main.runtime.ts",
1280
- "line": 109,
1281
- "character": 5
1282
- },
1283
- "name": "component",
1284
- "type": {
1285
- "__schema": "TypeRefSchema",
1286
- "location": {
1287
- "filePath": "schema.main.runtime.ts",
1288
- "line": 109,
1289
- "character": 16
1290
- },
1291
- "name": "Component",
1292
- "componentId": {
1293
- "scope": "teambit.component",
1294
- "name": "component"
1295
- }
1296
- },
1297
- "isOptional": false,
1298
- "isSpread": false
1299
- },
1300
- {
1301
- "__schema": "ParameterSchema",
1302
- "location": {
1303
- "filePath": "schema.main.runtime.ts",
1304
- "line": 110,
1305
- "character": 5
1306
- },
1307
- "name": "shouldDisposeResourcesOnceDone",
1308
- "type": {
1309
- "__schema": "InferenceTypeSchema",
1310
- "location": {
1311
- "filePath": "schema.main.runtime.ts",
1312
- "line": 110,
1313
- "character": 5
1314
- },
1315
- "type": "boolean"
1316
- },
1317
- "isOptional": true,
1318
- "defaultValue": "false",
1319
- "isSpread": false
1320
- },
1321
- {
1322
- "__schema": "ParameterSchema",
1323
- "location": {
1324
- "filePath": "schema.main.runtime.ts",
1325
- "line": 111,
1326
- "character": 5
1327
- },
1328
- "name": "alwaysRunExtractor",
1329
- "type": {
1330
- "__schema": "InferenceTypeSchema",
1331
- "location": {
1332
- "filePath": "schema.main.runtime.ts",
1333
- "line": 111,
1334
- "character": 5
1335
- },
1336
- "type": "boolean"
1337
- },
1338
- "isOptional": true,
1339
- "defaultValue": "false",
1340
- "isSpread": false
1341
- },
1342
- {
1343
- "__schema": "ParameterSchema",
1344
- "location": {
1345
- "filePath": "schema.main.runtime.ts",
1346
- "line": 112,
1347
- "character": 5
1348
- },
1349
- "name": "tsserverPath",
1350
- "type": {
1351
- "__schema": "KeywordTypeSchema",
1352
- "location": {
1353
- "filePath": "schema.main.runtime.ts",
1354
- "line": 112,
1355
- "character": 20
1356
- },
1357
- "name": "string"
1358
- },
1359
- "isOptional": true,
1360
- "isSpread": false
1361
- },
1362
- {
1363
- "__schema": "ParameterSchema",
1364
- "location": {
1365
- "filePath": "schema.main.runtime.ts",
1366
- "line": 113,
1367
- "character": 5
1368
- },
1369
- "name": "contextPath",
1370
- "type": {
1371
- "__schema": "KeywordTypeSchema",
1372
- "location": {
1373
- "filePath": "schema.main.runtime.ts",
1374
- "line": 113,
1375
- "character": 19
1376
- },
1377
- "name": "string"
1378
- },
1379
- "isOptional": true,
1380
- "isSpread": false
1381
- },
1382
- {
1383
- "__schema": "ParameterSchema",
1384
- "location": {
1385
- "filePath": "schema.main.runtime.ts",
1386
- "line": 114,
1387
- "character": 5
1388
- },
1389
- "name": "skipInternals",
1390
- "type": {
1391
- "__schema": "KeywordTypeSchema",
1392
- "location": {
1393
- "filePath": "schema.main.runtime.ts",
1394
- "line": 114,
1395
- "character": 21
1396
- },
1397
- "name": "boolean"
1398
- },
1399
- "isOptional": true,
1400
- "isSpread": false
1401
- },
1402
- {
1403
- "__schema": "ParameterSchema",
1404
- "location": {
1405
- "filePath": "schema.main.runtime.ts",
1406
- "line": 115,
1407
- "character": 5
1408
- },
1409
- "name": "schemaTransformers",
1410
- "type": {
1411
- "__schema": "TypeArraySchema",
1412
- "location": {
1413
- "filePath": "schema.main.runtime.ts",
1414
- "line": 115,
1415
- "character": 26
1416
- },
1417
- "type": {
1418
- "__schema": "TypeRefSchema",
1419
- "location": {
1420
- "filePath": "schema.main.runtime.ts",
1421
- "line": 115,
1422
- "character": 26
1423
- },
1424
- "name": "SchemaTransformer",
1425
- "componentId": {
1426
- "scope": "teambit.typescript",
1427
- "name": "typescript"
1428
- }
1429
- }
1430
- },
1431
- "isOptional": true,
1432
- "isSpread": false
1433
- },
1434
- {
1435
- "__schema": "ParameterSchema",
1436
- "location": {
1437
- "filePath": "schema.main.runtime.ts",
1438
- "line": 116,
1439
- "character": 5
1440
- },
1441
- "name": "apiTransformers",
1442
- "type": {
1443
- "__schema": "TypeArraySchema",
1444
- "location": {
1445
- "filePath": "schema.main.runtime.ts",
1446
- "line": 116,
1447
- "character": 23
1448
- },
1449
- "type": {
1450
- "__schema": "TypeRefSchema",
1451
- "location": {
1452
- "filePath": "schema.main.runtime.ts",
1453
- "line": 116,
1454
- "character": 23
1455
- },
1456
- "name": "SchemaNodeTransformer",
1457
- "componentId": {
1458
- "scope": "teambit.typescript",
1459
- "name": "typescript"
1460
- }
1461
- }
1462
- },
1463
- "isOptional": true,
1464
- "isSpread": false
1465
- }
1466
- ],
1467
- "returnType": {
1468
- "__schema": "TypeRefSchema",
1469
- "location": {
1470
- "filePath": "schema.main.runtime.ts",
1471
- "line": 117,
1472
- "character": 6
1473
- },
1474
- "name": "Promise",
1475
- "typeArgs": [
1476
- {
1477
- "__schema": "TypeRefSchema",
1478
- "location": {
1479
- "filePath": "schema.main.runtime.ts",
1480
- "line": 117,
1481
- "character": 14
1482
- },
1483
- "name": "APISchema",
1484
- "componentId": {
1485
- "scope": "teambit.semantics",
1486
- "name": "entities/semantic-schema",
1487
- "version": "0.0.68"
1488
- }
1489
- }
1490
- ]
1491
- },
1492
- "modifiers": [
1493
- "async"
1494
- ]
1495
- },
1496
- {
1497
- "__schema": "FunctionLikeSchema",
1498
- "location": {
1499
- "filePath": "schema.main.runtime.ts",
1500
- "line": 180,
1501
- "character": 3
1502
- },
1503
- "signature": "(method) SchemaMain.getSchemaFromObject(obj: Record<string, any>): APISchema",
1504
- "name": "getSchemaFromObject",
1505
- "params": [
1506
- {
1507
- "__schema": "ParameterSchema",
1508
- "location": {
1509
- "filePath": "schema.main.runtime.ts",
1510
- "line": 180,
1511
- "character": 23
1512
- },
1513
- "name": "obj",
1514
- "type": {
1515
- "__schema": "TypeRefSchema",
1516
- "location": {
1517
- "filePath": "schema.main.runtime.ts",
1518
- "line": 180,
1519
- "character": 28
1520
- },
1521
- "name": "Record",
1522
- "typeArgs": [
1523
- {
1524
- "__schema": "KeywordTypeSchema",
1525
- "location": {
1526
- "filePath": "schema.main.runtime.ts",
1527
- "line": 180,
1528
- "character": 35
1529
- },
1530
- "name": "string"
1531
- },
1532
- {
1533
- "__schema": "KeywordTypeSchema",
1534
- "location": {
1535
- "filePath": "schema.main.runtime.ts",
1536
- "line": 180,
1537
- "character": 43
1538
- },
1539
- "name": "any"
1540
- }
1541
- ]
1542
- },
1543
- "isOptional": false,
1544
- "isSpread": false
1545
- }
1546
- ],
1547
- "returnType": {
1548
- "__schema": "TypeRefSchema",
1549
- "location": {
1550
- "filePath": "schema.main.runtime.ts",
1551
- "line": 180,
1552
- "character": 3
1553
- },
1554
- "name": "APISchema",
1555
- "componentId": {
1556
- "scope": "teambit.semantics",
1557
- "name": "entities/semantic-schema",
1558
- "version": "0.0.68"
1559
- }
1560
- },
1561
- "modifiers": []
1562
- },
1563
- {
1564
- "__schema": "FunctionLikeSchema",
1565
- "location": {
1566
- "filePath": "schema.main.runtime.ts",
1567
- "line": 187,
1568
- "character": 3
1569
- },
1570
- "doc": {
1571
- "__schema": "DocSchema",
1572
- "location": {
1573
- "filePath": "schema.main.runtime.ts",
1574
- "line": 184,
1575
- "character": 3
1576
- },
1577
- "raw": "/**\n * register a new parser.\n */",
1578
- "comment": "register a new parser."
1579
- },
1580
- "signature": "(method) SchemaMain.registerParser(parser: Parser): SchemaMain",
1581
- "name": "registerParser",
1582
- "params": [
1583
- {
1584
- "__schema": "ParameterSchema",
1585
- "location": {
1586
- "filePath": "schema.main.runtime.ts",
1587
- "line": 187,
1588
- "character": 18
1589
- },
1590
- "name": "parser",
1591
- "type": {
1592
- "__schema": "TypeRefSchema",
1593
- "location": {
1594
- "filePath": "schema.main.runtime.ts",
1595
- "line": 187,
1596
- "character": 26
1597
- },
1598
- "name": "Parser"
1599
- },
1600
- "isOptional": false,
1601
- "isSpread": false
1602
- }
1603
- ],
1604
- "returnType": {
1605
- "__schema": "TypeRefSchema",
1606
- "location": {
1607
- "filePath": "schema.main.runtime.ts",
1608
- "line": 187,
1609
- "character": 3
1610
- },
1611
- "name": "SchemaMain"
1612
- },
1613
- "modifiers": []
1614
- },
1615
- {
1616
- "__schema": "FunctionLikeSchema",
1617
- "location": {
1618
- "filePath": "schema.main.runtime.ts",
1619
- "line": 192,
1620
- "character": 3
1621
- },
1622
- "signature": "(method) SchemaMain.calcSchemaData(): Promise<{\n disabled?: boolean;\n}>",
1623
- "name": "calcSchemaData",
1624
- "params": [],
1625
- "returnType": {
1626
- "__schema": "TypeRefSchema",
1627
- "location": {
1628
- "filePath": "schema.main.runtime.ts",
1629
- "line": 192,
1630
- "character": 27
1631
- },
1632
- "name": "Promise",
1633
- "typeArgs": [
1634
- {
1635
- "__schema": "TypeLiteralSchema",
1636
- "location": {
1637
- "filePath": "schema.main.runtime.ts",
1638
- "line": 192,
1639
- "character": 35
1640
- },
1641
- "members": [
1642
- {
1643
- "__schema": "VariableLikeSchema",
1644
- "location": {
1645
- "filePath": "schema.main.runtime.ts",
1646
- "line": 192,
1647
- "character": 37
1648
- },
1649
- "signature": "(property) disabled?: boolean | undefined",
1650
- "name": "disabled",
1651
- "type": {
1652
- "__schema": "KeywordTypeSchema",
1653
- "location": {
1654
- "filePath": "schema.main.runtime.ts",
1655
- "line": 192,
1656
- "character": 48
1657
- },
1658
- "name": "boolean"
1659
- },
1660
- "isOptional": true
1661
- }
1662
- ]
1663
- }
1664
- ]
1665
- },
1666
- "modifiers": [
1667
- "async"
1668
- ]
1669
- },
1670
- {
1671
- "__schema": "FunctionLikeSchema",
1672
- "location": {
1673
- "filePath": "schema.main.runtime.ts",
1674
- "line": 198,
1675
- "character": 3
1676
- },
1677
- "signature": "(method) SchemaMain.getSchemaData(component: Component): {\n [key: string]: any;\n} | undefined",
1678
- "name": "getSchemaData",
1679
- "params": [
1680
- {
1681
- "__schema": "ParameterSchema",
1682
- "location": {
1683
- "filePath": "schema.main.runtime.ts",
1684
- "line": 198,
1685
- "character": 17
1686
- },
1687
- "name": "component",
1688
- "type": {
1689
- "__schema": "TypeRefSchema",
1690
- "location": {
1691
- "filePath": "schema.main.runtime.ts",
1692
- "line": 198,
1693
- "character": 28
1694
- },
1695
- "name": "Component",
1696
- "componentId": {
1697
- "scope": "teambit.component",
1698
- "name": "component"
1699
- }
1700
- },
1701
- "isOptional": false,
1702
- "isSpread": false
1703
- }
1704
- ],
1705
- "returnType": {
1706
- "__schema": "InferenceTypeSchema",
1707
- "location": {
1708
- "filePath": "schema.main.runtime.ts",
1709
- "line": 198,
1710
- "character": 3
1711
- },
1712
- "type": "{\n [key: string]: any;\n} | undefined"
1713
- },
1714
- "modifiers": []
1715
- },
1716
- {
1717
- "__schema": "FunctionLikeSchema",
1718
- "location": {
1719
- "filePath": "schema.main.runtime.ts",
1720
- "line": 202,
1721
- "character": 3
1722
- },
1723
- "signature": "(method) SchemaMain.isSchemaTaskDisabled(component: Component): any",
1724
- "name": "isSchemaTaskDisabled",
1725
- "params": [
1726
- {
1727
- "__schema": "ParameterSchema",
1728
- "location": {
1729
- "filePath": "schema.main.runtime.ts",
1730
- "line": 202,
1731
- "character": 24
1732
- },
1733
- "name": "component",
1734
- "type": {
1735
- "__schema": "TypeRefSchema",
1736
- "location": {
1737
- "filePath": "schema.main.runtime.ts",
1738
- "line": 202,
1739
- "character": 35
1740
- },
1741
- "name": "Component",
1742
- "componentId": {
1743
- "scope": "teambit.component",
1744
- "name": "component"
1745
- }
1746
- },
1747
- "isOptional": false,
1748
- "isSpread": false
1749
- }
1750
- ],
1751
- "returnType": {
1752
- "__schema": "InferenceTypeSchema",
1753
- "location": {
1754
- "filePath": "schema.main.runtime.ts",
1755
- "line": 202,
1756
- "character": 3
1757
- },
1758
- "type": "any"
1759
- },
1760
- "modifiers": []
1761
- },
1762
- {
1763
- "__schema": "VariableLikeSchema",
1764
- "location": {
1765
- "filePath": "schema.main.runtime.ts",
1766
- "line": 206,
1767
- "character": 3
1768
- },
1769
- "signature": "(property) SchemaMain.runtime: RuntimeDefinition",
1770
- "name": "runtime",
1771
- "type": {
1772
- "__schema": "InferenceTypeSchema",
1773
- "location": {
1774
- "filePath": "schema.main.runtime.ts",
1775
- "line": 206,
1776
- "character": 3
1777
- },
1778
- "type": "RuntimeDefinition"
1779
- },
1780
- "isOptional": true,
1781
- "defaultValue": "MainRuntime"
1782
- },
1783
- {
1784
- "__schema": "VariableLikeSchema",
1785
- "location": {
1786
- "filePath": "schema.main.runtime.ts",
1787
- "line": 207,
1788
- "character": 3
1789
- },
1790
- "signature": "(property) SchemaMain.dependencies: Aspect[]",
1791
- "name": "dependencies",
1792
- "type": {
1793
- "__schema": "InferenceTypeSchema",
1794
- "location": {
1795
- "filePath": "schema.main.runtime.ts",
1796
- "line": 207,
1797
- "character": 3
1798
- },
1799
- "type": "Aspect[]"
1800
- },
1801
- "isOptional": true,
1802
- "defaultValue": "[\n EnvsAspect,\n CLIAspect,\n ComponentAspect,\n GraphqlAspect,\n LoggerAspect,\n BuilderAspect,\n WorkspaceAspect,\n ScopeAspect,\n ]"
1803
- },
1804
- {
1805
- "__schema": "VariableLikeSchema",
1806
- "location": {
1807
- "filePath": "schema.main.runtime.ts",
1808
- "line": 217,
1809
- "character": 3
1810
- },
1811
- "signature": "(property) SchemaMain.slots: ((registerFn: () => string) => SlotRegistry<Parser>)[]",
1812
- "name": "slots",
1813
- "type": {
1814
- "__schema": "InferenceTypeSchema",
1815
- "location": {
1816
- "filePath": "schema.main.runtime.ts",
1817
- "line": 217,
1818
- "character": 3
1819
- },
1820
- "type": "((registerFn: () => string) => SlotRegistry<Parser>)[]"
1821
- },
1822
- "isOptional": true,
1823
- "defaultValue": "[Slot.withType<Parser>()]"
1824
- },
1825
- {
1826
- "__schema": "VariableLikeSchema",
1827
- "location": {
1828
- "filePath": "schema.main.runtime.ts",
1829
- "line": 219,
1830
- "character": 3
1831
- },
1832
- "signature": "(property) SchemaMain.defaultConfig: {\n defaultParser: string;\n disabled: boolean;\n}",
1833
- "name": "defaultConfig",
1834
- "type": {
1835
- "__schema": "InferenceTypeSchema",
1836
- "location": {
1837
- "filePath": "schema.main.runtime.ts",
1838
- "line": 219,
1839
- "character": 3
1840
- },
1841
- "type": "{\n defaultParser: string;\n disabled: boolean;\n}"
1842
- },
1843
- "isOptional": true,
1844
- "defaultValue": "{\n defaultParser: 'teambit.typescript/typescript',\n disabled: false,\n }"
186
+ "exportNode": {
187
+ "__schema": "TypeRefSchema",
188
+ "location": {
189
+ "filePath": "index.ts",
190
+ "line": 14,
191
+ "character": 15
1845
192
  },
1846
- {
1847
- "__schema": "FunctionLikeSchema",
1848
- "location": {
1849
- "filePath": "schema.main.runtime.ts",
1850
- "line": 224,
1851
- "character": 3
1852
- },
1853
- "signature": "(method) SchemaMain.provider([envs, cli, component, graphql, loggerMain, builder, workspace, scope]: [\n EnvsMain,\n CLIMain,\n ComponentMain,\n GraphqlMain,\n LoggerMain,\n BuilderMain,\n Workspace,\n ScopeMain\n], config: SchemaConfig, [parserSlot]: [ParserSlot]): Promise<SchemaMain>",
1854
- "name": "provider",
1855
- "params": [
1856
- {
1857
- "__schema": "ParameterSchema",
1858
- "location": {
1859
- "filePath": "schema.main.runtime.ts",
1860
- "line": 225,
1861
- "character": 5
1862
- },
1863
- "name": "[ envs, cli, component, graphql, loggerMain, builder, workspace, scope ]",
1864
- "type": {
1865
- "__schema": "TupleTypeSchema",
1866
- "location": {
1867
- "filePath": "schema.main.runtime.ts",
1868
- "line": 225,
1869
- "character": 77
1870
- },
1871
- "elements": [
1872
- {
1873
- "__schema": "TypeRefSchema",
1874
- "location": {
1875
- "filePath": "schema.main.runtime.ts",
1876
- "line": 226,
1877
- "character": 7
1878
- },
1879
- "name": "EnvsMain",
1880
- "componentId": {
1881
- "scope": "teambit.envs",
1882
- "name": "envs"
1883
- }
1884
- },
1885
- {
1886
- "__schema": "TypeRefSchema",
1887
- "location": {
1888
- "filePath": "schema.main.runtime.ts",
1889
- "line": 227,
1890
- "character": 7
1891
- },
1892
- "name": "CLIMain",
1893
- "componentId": {
1894
- "scope": "teambit.harmony",
1895
- "name": "cli"
1896
- }
1897
- },
1898
- {
1899
- "__schema": "TypeRefSchema",
1900
- "location": {
1901
- "filePath": "schema.main.runtime.ts",
1902
- "line": 228,
1903
- "character": 7
1904
- },
1905
- "name": "ComponentMain",
1906
- "componentId": {
1907
- "scope": "teambit.component",
1908
- "name": "component"
1909
- }
1910
- },
1911
- {
1912
- "__schema": "TypeRefSchema",
1913
- "location": {
1914
- "filePath": "schema.main.runtime.ts",
1915
- "line": 229,
1916
- "character": 7
1917
- },
1918
- "name": "GraphqlMain",
1919
- "componentId": {
1920
- "scope": "teambit.harmony",
1921
- "name": "graphql"
1922
- }
1923
- },
1924
- {
1925
- "__schema": "TypeRefSchema",
1926
- "location": {
1927
- "filePath": "schema.main.runtime.ts",
1928
- "line": 230,
1929
- "character": 7
1930
- },
1931
- "name": "LoggerMain",
1932
- "componentId": {
1933
- "scope": "teambit.harmony",
1934
- "name": "logger"
1935
- }
1936
- },
1937
- {
1938
- "__schema": "TypeRefSchema",
1939
- "location": {
1940
- "filePath": "schema.main.runtime.ts",
1941
- "line": 231,
1942
- "character": 7
1943
- },
1944
- "name": "BuilderMain",
1945
- "componentId": {
1946
- "scope": "teambit.pipelines",
1947
- "name": "builder"
1948
- }
1949
- },
1950
- {
1951
- "__schema": "TypeRefSchema",
1952
- "location": {
1953
- "filePath": "schema.main.runtime.ts",
1954
- "line": 232,
1955
- "character": 7
1956
- },
1957
- "name": "Workspace",
1958
- "componentId": {
1959
- "scope": "teambit.workspace",
1960
- "name": "workspace"
1961
- }
1962
- },
1963
- {
1964
- "__schema": "TypeRefSchema",
1965
- "location": {
1966
- "filePath": "schema.main.runtime.ts",
1967
- "line": 233,
1968
- "character": 7
1969
- },
1970
- "name": "ScopeMain",
1971
- "componentId": {
1972
- "scope": "teambit.scope",
1973
- "name": "scope"
1974
- }
1975
- }
1976
- ]
1977
- },
1978
- "isOptional": false,
1979
- "isSpread": false
1980
- },
1981
- {
1982
- "__schema": "ParameterSchema",
1983
- "location": {
1984
- "filePath": "schema.main.runtime.ts",
1985
- "line": 235,
1986
- "character": 5
1987
- },
1988
- "name": "config",
1989
- "type": {
1990
- "__schema": "TypeRefSchema",
1991
- "location": {
1992
- "filePath": "schema.main.runtime.ts",
1993
- "line": 235,
1994
- "character": 13
1995
- },
1996
- "name": "SchemaConfig",
1997
- "internalFilePath": "schema.main.runtime.ts"
1998
- },
1999
- "isOptional": false,
2000
- "isSpread": false
2001
- },
2002
- {
2003
- "__schema": "ParameterSchema",
2004
- "location": {
2005
- "filePath": "schema.main.runtime.ts",
2006
- "line": 236,
2007
- "character": 5
2008
- },
2009
- "name": "[ parserSlot ]",
2010
- "type": {
2011
- "__schema": "TupleTypeSchema",
2012
- "location": {
2013
- "filePath": "schema.main.runtime.ts",
2014
- "line": 236,
2015
- "character": 19
2016
- },
2017
- "elements": [
2018
- {
2019
- "__schema": "TypeRefSchema",
2020
- "location": {
2021
- "filePath": "schema.main.runtime.ts",
2022
- "line": 236,
2023
- "character": 20
2024
- },
2025
- "name": "ParserSlot",
2026
- "internalFilePath": "schema.main.runtime.ts"
2027
- }
2028
- ]
2029
- },
2030
- "isOptional": false,
2031
- "isSpread": false
2032
- }
2033
- ],
2034
- "returnType": {
2035
- "__schema": "InferenceTypeSchema",
2036
- "location": {
2037
- "filePath": "schema.main.runtime.ts",
2038
- "line": 224,
2039
- "character": 3
2040
- },
2041
- "type": "Promise<SchemaMain>"
2042
- },
2043
- "modifiers": [
2044
- "static",
2045
- "async"
2046
- ]
2047
- }
2048
- ],
2049
- "extendsNodes": [],
2050
- "implementNodes": []
193
+ "name": "SchemaMain"
194
+ }
2051
195
  },
2052
196
  {
2053
197
  "__schema": "UnImplementedSchema",
@@ -2060,2304 +204,31 @@
2060
204
  "type": "Identifier"
2061
205
  },
2062
206
  {
2063
- "__schema": "VariableLikeSchema",
207
+ "__schema": "ExportSchema",
2064
208
  "location": {
2065
- "filePath": "schema.aspect.ts",
2066
- "line": 3,
2067
- "character": 14
209
+ "filePath": "index.ts",
210
+ "line": 16,
211
+ "character": 10
2068
212
  },
2069
- "signature": "const SchemaAspect: Aspect",
2070
213
  "name": "SchemaAspect",
2071
- "type": {
214
+ "exportNode": {
2072
215
  "__schema": "TypeRefSchema",
2073
216
  "location": {
2074
- "filePath": "schema.aspect.ts",
2075
- "line": 3,
2076
- "character": 14
217
+ "filePath": "index.ts",
218
+ "line": 16,
219
+ "character": 10
2077
220
  },
2078
- "name": "Aspect",
2079
- "componentId": {
2080
- "scope": "teambit.harmony",
2081
- "name": "harmony",
2082
- "version": "0.4.6"
2083
- }
2084
- },
2085
- "isOptional": false,
2086
- "defaultValue": "Aspect.create({\n id: 'teambit.semantics/schema',\n})"
221
+ "name": "SchemaAspect"
222
+ }
2087
223
  }
2088
224
  ],
2089
225
  "internals": []
2090
226
  },
2091
- "internals": [
2092
- {
2093
- "__schema": "ModuleSchema",
2094
- "location": {
2095
- "filePath": "parser.ts",
2096
- "line": 1,
2097
- "character": 1
2098
- },
2099
- "exports": [
2100
- {
2101
- "__schema": "InterfaceSchema",
2102
- "location": {
2103
- "filePath": "parser.ts",
2104
- "line": 3,
2105
- "character": 1
2106
- },
2107
- "signature": "interface Parser",
2108
- "name": "Parser",
2109
- "members": [
2110
- {
2111
- "__schema": "VariableLikeSchema",
2112
- "location": {
2113
- "filePath": "parser.ts",
2114
- "line": 7,
2115
- "character": 3
2116
- },
2117
- "doc": {
2118
- "__schema": "DocSchema",
2119
- "location": {
2120
- "filePath": "parser.ts",
2121
- "line": 4,
2122
- "character": 3
2123
- },
2124
- "raw": "/**\n * regex to apply on which components compiler applies.\n */",
2125
- "comment": "regex to apply on which components compiler applies."
2126
- },
2127
- "signature": "(property) Parser.extension: RegExp",
2128
- "name": "extension",
2129
- "type": {
2130
- "__schema": "TypeRefSchema",
2131
- "location": {
2132
- "filePath": "parser.ts",
2133
- "line": 7,
2134
- "character": 14
2135
- },
2136
- "name": "RegExp"
2137
- },
2138
- "isOptional": false
2139
- },
2140
- {
2141
- "__schema": "FunctionLikeSchema",
2142
- "location": {
2143
- "filePath": "parser.ts",
2144
- "line": 12,
2145
- "character": 3
2146
- },
2147
- "doc": {
2148
- "__schema": "DocSchema",
2149
- "location": {
2150
- "filePath": "parser.ts",
2151
- "line": 9,
2152
- "character": 3
2153
- },
2154
- "raw": "/**\n * parse a module.\n */",
2155
- "comment": "parse a module."
2156
- },
2157
- "signature": "(method) Parser.parseModule(modulePath: string, content?: string): Export[]",
2158
- "name": "parseModule",
2159
- "params": [
2160
- {
2161
- "__schema": "ParameterSchema",
2162
- "location": {
2163
- "filePath": "parser.ts",
2164
- "line": 12,
2165
- "character": 15
2166
- },
2167
- "name": "modulePath",
2168
- "type": {
2169
- "__schema": "KeywordTypeSchema",
2170
- "location": {
2171
- "filePath": "parser.ts",
2172
- "line": 12,
2173
- "character": 27
2174
- },
2175
- "name": "string"
2176
- },
2177
- "isOptional": false,
2178
- "isSpread": false
2179
- },
2180
- {
2181
- "__schema": "ParameterSchema",
2182
- "location": {
2183
- "filePath": "parser.ts",
2184
- "line": 12,
2185
- "character": 35
2186
- },
2187
- "name": "content",
2188
- "type": {
2189
- "__schema": "KeywordTypeSchema",
2190
- "location": {
2191
- "filePath": "parser.ts",
2192
- "line": 12,
2193
- "character": 45
2194
- },
2195
- "name": "string"
2196
- },
2197
- "isOptional": true,
2198
- "isSpread": false
2199
- }
2200
- ],
2201
- "returnType": {
2202
- "__schema": "TypeArraySchema",
2203
- "location": {
2204
- "filePath": "parser.ts",
2205
- "line": 12,
2206
- "character": 54
2207
- },
2208
- "type": {
2209
- "__schema": "TypeRefSchema",
2210
- "location": {
2211
- "filePath": "parser.ts",
2212
- "line": 12,
2213
- "character": 54
2214
- },
2215
- "name": "Export",
2216
- "componentId": {
2217
- "scope": "teambit.semantics",
2218
- "name": "entities/semantic-schema",
2219
- "version": "0.0.68"
2220
- }
2221
- }
2222
- },
2223
- "modifiers": []
2224
- }
2225
- ],
2226
- "extendsNodes": []
2227
- }
2228
- ],
2229
- "internals": []
2230
- },
2231
- {
2232
- "__schema": "ModuleSchema",
2233
- "location": {
2234
- "filePath": "schema-extractor.ts",
2235
- "line": 1,
2236
- "character": 1
2237
- },
2238
- "exports": [
2239
- {
2240
- "__schema": "InterfaceSchema",
2241
- "location": {
2242
- "filePath": "schema-extractor.ts",
2243
- "line": 5,
2244
- "character": 1
2245
- },
2246
- "signature": "interface SchemaExtractor",
2247
- "name": "SchemaExtractor",
2248
- "members": [
2249
- {
2250
- "__schema": "FunctionLikeSchema",
2251
- "location": {
2252
- "filePath": "schema-extractor.ts",
2253
- "line": 9,
2254
- "character": 3
2255
- },
2256
- "doc": {
2257
- "__schema": "DocSchema",
2258
- "location": {
2259
- "filePath": "schema-extractor.ts",
2260
- "line": 6,
2261
- "character": 3
2262
- },
2263
- "raw": "/**\n * extract a semantic schema from a component.\n */",
2264
- "comment": "extract a semantic schema from a component."
2265
- },
2266
- "signature": "(method) SchemaExtractor.extract(component: Component, options?: SchemaExtractorOptions): Promise<APISchema>",
2267
- "name": "extract",
2268
- "params": [
2269
- {
2270
- "__schema": "ParameterSchema",
2271
- "location": {
2272
- "filePath": "schema-extractor.ts",
2273
- "line": 9,
2274
- "character": 11
2275
- },
2276
- "name": "component",
2277
- "type": {
2278
- "__schema": "TypeRefSchema",
2279
- "location": {
2280
- "filePath": "schema-extractor.ts",
2281
- "line": 9,
2282
- "character": 22
2283
- },
2284
- "name": "Component",
2285
- "componentId": {
2286
- "scope": "teambit.component",
2287
- "name": "component"
2288
- }
2289
- },
2290
- "isOptional": false,
2291
- "isSpread": false
2292
- },
2293
- {
2294
- "__schema": "ParameterSchema",
2295
- "location": {
2296
- "filePath": "schema-extractor.ts",
2297
- "line": 9,
2298
- "character": 33
2299
- },
2300
- "name": "options",
2301
- "type": {
2302
- "__schema": "TypeRefSchema",
2303
- "location": {
2304
- "filePath": "schema-extractor.ts",
2305
- "line": 9,
2306
- "character": 43
2307
- },
2308
- "name": "SchemaExtractorOptions"
2309
- },
2310
- "isOptional": true,
2311
- "isSpread": false
2312
- }
2313
- ],
2314
- "returnType": {
2315
- "__schema": "TypeRefSchema",
2316
- "location": {
2317
- "filePath": "schema-extractor.ts",
2318
- "line": 9,
2319
- "character": 68
2320
- },
2321
- "name": "Promise",
2322
- "typeArgs": [
2323
- {
2324
- "__schema": "TypeRefSchema",
2325
- "location": {
2326
- "filePath": "schema-extractor.ts",
2327
- "line": 9,
2328
- "character": 76
2329
- },
2330
- "name": "APISchema",
2331
- "componentId": {
2332
- "scope": "teambit.semantics",
2333
- "name": "entities/semantic-schema",
2334
- "version": "0.0.68"
2335
- }
2336
- }
2337
- ]
2338
- },
2339
- "modifiers": []
2340
- },
2341
- {
2342
- "__schema": "FunctionLikeSchema",
2343
- "location": {
2344
- "filePath": "schema-extractor.ts",
2345
- "line": 16,
2346
- "character": 3
2347
- },
2348
- "doc": {
2349
- "__schema": "DocSchema",
2350
- "location": {
2351
- "filePath": "schema-extractor.ts",
2352
- "line": 10,
2353
- "character": 3
2354
- },
2355
- "raw": "/**\n * release resources if no schemas are needed for this process.\n * for typescript, this will kill the tsserver process.\n * for performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\n * components will be very slow.\n */",
2356
- "comment": "release resources if no schemas are needed for this process.\nfor typescript, this will kill the tsserver process.\nfor performance reasons, this is not automatically run after \"extract\". otherwise, running extract on multiple\ncomponents will be very slow."
2357
- },
2358
- "signature": "(method) SchemaExtractor.dispose(): void",
2359
- "name": "dispose",
2360
- "params": [],
2361
- "returnType": {
2362
- "__schema": "KeywordTypeSchema",
2363
- "location": {
2364
- "filePath": "schema-extractor.ts",
2365
- "line": 16,
2366
- "character": 14
2367
- },
2368
- "name": "void"
2369
- },
2370
- "modifiers": []
2371
- }
2372
- ],
2373
- "extendsNodes": []
2374
- },
2375
- {
2376
- "__schema": "TypeSchema",
2377
- "location": {
2378
- "filePath": "schema-extractor.ts",
2379
- "line": 19,
2380
- "character": 1
2381
- },
2382
- "signature": "type SchemaExtractorOptions = {\n formatter?: Formatter | undefined;\n tsserverPath?: string | undefined;\n contextPath?: string | undefined;\n skipInternals?: boolean | undefined;\n}",
2383
- "name": "SchemaExtractorOptions",
2384
- "type": {
2385
- "__schema": "TypeLiteralSchema",
2386
- "location": {
2387
- "filePath": "schema-extractor.ts",
2388
- "line": 19,
2389
- "character": 38
2390
- },
2391
- "members": [
2392
- {
2393
- "__schema": "VariableLikeSchema",
2394
- "location": {
2395
- "filePath": "schema-extractor.ts",
2396
- "line": 20,
2397
- "character": 3
2398
- },
2399
- "signature": "(property) formatter?: Formatter | undefined",
2400
- "name": "formatter",
2401
- "type": {
2402
- "__schema": "TypeRefSchema",
2403
- "location": {
2404
- "filePath": "schema-extractor.ts",
2405
- "line": 20,
2406
- "character": 15
2407
- },
2408
- "name": "Formatter",
2409
- "componentId": {
2410
- "scope": "teambit.defender",
2411
- "name": "formatter"
2412
- }
2413
- },
2414
- "isOptional": true
2415
- },
2416
- {
2417
- "__schema": "VariableLikeSchema",
2418
- "location": {
2419
- "filePath": "schema-extractor.ts",
2420
- "line": 21,
2421
- "character": 3
2422
- },
2423
- "signature": "(property) tsserverPath?: string | undefined",
2424
- "name": "tsserverPath",
2425
- "type": {
2426
- "__schema": "KeywordTypeSchema",
2427
- "location": {
2428
- "filePath": "schema-extractor.ts",
2429
- "line": 21,
2430
- "character": 18
2431
- },
2432
- "name": "string"
2433
- },
2434
- "isOptional": true
2435
- },
2436
- {
2437
- "__schema": "VariableLikeSchema",
2438
- "location": {
2439
- "filePath": "schema-extractor.ts",
2440
- "line": 22,
2441
- "character": 3
2442
- },
2443
- "signature": "(property) contextPath?: string | undefined",
2444
- "name": "contextPath",
2445
- "type": {
2446
- "__schema": "KeywordTypeSchema",
2447
- "location": {
2448
- "filePath": "schema-extractor.ts",
2449
- "line": 22,
2450
- "character": 17
2451
- },
2452
- "name": "string"
2453
- },
2454
- "isOptional": true
2455
- },
2456
- {
2457
- "__schema": "VariableLikeSchema",
2458
- "location": {
2459
- "filePath": "schema-extractor.ts",
2460
- "line": 23,
2461
- "character": 3
2462
- },
2463
- "signature": "(property) skipInternals?: boolean | undefined",
2464
- "name": "skipInternals",
2465
- "type": {
2466
- "__schema": "KeywordTypeSchema",
2467
- "location": {
2468
- "filePath": "schema-extractor.ts",
2469
- "line": 23,
2470
- "character": 19
2471
- },
2472
- "name": "boolean"
2473
- },
2474
- "isOptional": true
2475
- }
2476
- ]
2477
- }
2478
- }
2479
- ],
2480
- "internals": []
2481
- },
2482
- {
2483
- "__schema": "ModuleSchema",
2484
- "location": {
2485
- "filePath": "schema.task.ts",
2486
- "line": 1,
2487
- "character": 1
2488
- },
2489
- "exports": [
2490
- {
2491
- "__schema": "VariableLikeSchema",
2492
- "location": {
2493
- "filePath": "schema.task.ts",
2494
- "line": 16,
2495
- "character": 14
2496
- },
2497
- "signature": "const SCHEMA_TASK_NAME: \"ExtractSchema\"",
2498
- "name": "SCHEMA_TASK_NAME",
2499
- "type": {
2500
- "__schema": "InferenceTypeSchema",
2501
- "location": {
2502
- "filePath": "schema.task.ts",
2503
- "line": 16,
2504
- "character": 14
2505
- },
2506
- "type": "\"ExtractSchema\""
2507
- },
2508
- "isOptional": false,
2509
- "defaultValue": "'ExtractSchema'"
2510
- },
2511
- {
2512
- "__schema": "VariableLikeSchema",
2513
- "location": {
2514
- "filePath": "schema.task.ts",
2515
- "line": 17,
2516
- "character": 14
2517
- },
2518
- "signature": "const SCHEMA_ARTIFACT_NAME: \"schema\"",
2519
- "name": "SCHEMA_ARTIFACT_NAME",
2520
- "type": {
2521
- "__schema": "InferenceTypeSchema",
2522
- "location": {
2523
- "filePath": "schema.task.ts",
2524
- "line": 17,
2525
- "character": 14
2526
- },
2527
- "type": "\"schema\""
2528
- },
2529
- "isOptional": false,
2530
- "defaultValue": "'schema'"
2531
- },
2532
- {
2533
- "__schema": "ClassSchema",
2534
- "location": {
2535
- "filePath": "schema.task.ts",
2536
- "line": 22,
2537
- "character": 1
2538
- },
2539
- "doc": {
2540
- "__schema": "DocSchema",
2541
- "location": {
2542
- "filePath": "schema.task.ts",
2543
- "line": 19,
2544
- "character": 1
2545
- },
2546
- "raw": "/**\n * extract and persist the component schema as a json file\n */",
2547
- "comment": "extract and persist the component schema as a json file"
2548
- },
2549
- "signature": "class SchemaTask",
2550
- "name": "SchemaTask",
2551
- "members": [
2552
- {
2553
- "__schema": "VariableLikeSchema",
2554
- "location": {
2555
- "filePath": "schema.task.ts",
2556
- "line": 23,
2557
- "character": 3
2558
- },
2559
- "signature": "(property) SchemaTask.name: \"ExtractSchema\"",
2560
- "name": "name",
2561
- "type": {
2562
- "__schema": "InferenceTypeSchema",
2563
- "location": {
2564
- "filePath": "schema.task.ts",
2565
- "line": 23,
2566
- "character": 3
2567
- },
2568
- "type": "\"ExtractSchema\""
2569
- },
2570
- "isOptional": true,
2571
- "defaultValue": "SCHEMA_TASK_NAME"
2572
- },
2573
- {
2574
- "__schema": "VariableLikeSchema",
2575
- "location": {
2576
- "filePath": "schema.task.ts",
2577
- "line": 24,
2578
- "character": 3
2579
- },
2580
- "signature": "(property) SchemaTask.location: TaskLocation",
2581
- "name": "location",
2582
- "type": {
2583
- "__schema": "TypeRefSchema",
2584
- "location": {
2585
- "filePath": "schema.task.ts",
2586
- "line": 24,
2587
- "character": 3
2588
- },
2589
- "name": "TaskLocation",
2590
- "componentId": {
2591
- "scope": "teambit.pipelines",
2592
- "name": "builder"
2593
- }
2594
- },
2595
- "isOptional": true,
2596
- "defaultValue": "'end'"
2597
- },
2598
- {
2599
- "__schema": "VariableLikeSchema",
2600
- "location": {
2601
- "filePath": "schema.task.ts",
2602
- "line": 25,
2603
- "character": 3
2604
- },
2605
- "signature": "(property) SchemaTask.description: \"extract api schema for a set of components\"",
2606
- "name": "description",
2607
- "type": {
2608
- "__schema": "InferenceTypeSchema",
2609
- "location": {
2610
- "filePath": "schema.task.ts",
2611
- "line": 25,
2612
- "character": 3
2613
- },
2614
- "type": "\"extract api schema for a set of components\""
2615
- },
2616
- "isOptional": true,
2617
- "defaultValue": "'extract api schema for a set of components'"
2618
- },
2619
- {
2620
- "__schema": "ConstructorSchema",
2621
- "location": {
2622
- "filePath": "schema.task.ts",
2623
- "line": 27,
2624
- "character": 3
2625
- },
2626
- "signature": "constructor SchemaTask(aspectId: string, schema: SchemaMain, logger: Logger): SchemaTask",
2627
- "name": "constructor",
2628
- "params": [
2629
- {
2630
- "__schema": "ParameterSchema",
2631
- "location": {
2632
- "filePath": "schema.task.ts",
2633
- "line": 27,
2634
- "character": 15
2635
- },
2636
- "name": "aspectId",
2637
- "type": {
2638
- "__schema": "KeywordTypeSchema",
2639
- "location": {
2640
- "filePath": "schema.task.ts",
2641
- "line": 27,
2642
- "character": 34
2643
- },
2644
- "name": "string"
2645
- },
2646
- "isOptional": false,
2647
- "isSpread": false
2648
- },
2649
- {
2650
- "__schema": "ParameterSchema",
2651
- "location": {
2652
- "filePath": "schema.task.ts",
2653
- "line": 27,
2654
- "character": 42
2655
- },
2656
- "name": "schema",
2657
- "type": {
2658
- "__schema": "TypeRefSchema",
2659
- "location": {
2660
- "filePath": "schema.task.ts",
2661
- "line": 27,
2662
- "character": 58
2663
- },
2664
- "name": "SchemaMain"
2665
- },
2666
- "isOptional": false,
2667
- "isSpread": false
2668
- },
2669
- {
2670
- "__schema": "ParameterSchema",
2671
- "location": {
2672
- "filePath": "schema.task.ts",
2673
- "line": 27,
2674
- "character": 70
2675
- },
2676
- "name": "logger",
2677
- "type": {
2678
- "__schema": "TypeRefSchema",
2679
- "location": {
2680
- "filePath": "schema.task.ts",
2681
- "line": 27,
2682
- "character": 86
2683
- },
2684
- "name": "Logger",
2685
- "componentId": {
2686
- "scope": "teambit.harmony",
2687
- "name": "logger"
2688
- }
2689
- },
2690
- "isOptional": false,
2691
- "isSpread": false
2692
- }
2693
- ],
2694
- "returnType": {
2695
- "__schema": "ThisTypeSchema",
2696
- "location": {
2697
- "filePath": "schema.task.ts",
2698
- "line": 22,
2699
- "character": 1
2700
- },
2701
- "name": "SchemaTask"
2702
- },
2703
- "modifiers": []
2704
- },
2705
- {
2706
- "__schema": "FunctionLikeSchema",
2707
- "location": {
2708
- "filePath": "schema.task.ts",
2709
- "line": 29,
2710
- "character": 3
2711
- },
2712
- "signature": "(method) SchemaTask.execute(context: BuildContext): Promise<BuiltTaskResult>",
2713
- "name": "execute",
2714
- "params": [
2715
- {
2716
- "__schema": "ParameterSchema",
2717
- "location": {
2718
- "filePath": "schema.task.ts",
2719
- "line": 29,
2720
- "character": 17
2721
- },
2722
- "name": "context",
2723
- "type": {
2724
- "__schema": "TypeRefSchema",
2725
- "location": {
2726
- "filePath": "schema.task.ts",
2727
- "line": 29,
2728
- "character": 26
2729
- },
2730
- "name": "BuildContext",
2731
- "componentId": {
2732
- "scope": "teambit.pipelines",
2733
- "name": "builder"
2734
- }
2735
- },
2736
- "isOptional": false,
2737
- "isSpread": false
2738
- }
2739
- ],
2740
- "returnType": {
2741
- "__schema": "TypeRefSchema",
2742
- "location": {
2743
- "filePath": "schema.task.ts",
2744
- "line": 29,
2745
- "character": 41
2746
- },
2747
- "name": "Promise",
2748
- "typeArgs": [
2749
- {
2750
- "__schema": "TypeRefSchema",
2751
- "location": {
2752
- "filePath": "schema.task.ts",
2753
- "line": 29,
2754
- "character": 49
2755
- },
2756
- "name": "BuiltTaskResult",
2757
- "componentId": {
2758
- "scope": "teambit.pipelines",
2759
- "name": "builder"
2760
- }
2761
- }
2762
- ]
2763
- },
2764
- "modifiers": [
2765
- "async"
2766
- ]
2767
- }
2768
- ],
2769
- "extendsNodes": [],
2770
- "implementNodes": [
2771
- {
2772
- "__schema": "ExpressionWithTypeArgumentsSchema",
2773
- "location": {
2774
- "filePath": "schema.task.ts",
2775
- "line": 22,
2776
- "character": 36
2777
- },
2778
- "name": "implements BuildTask",
2779
- "typeArgs": [],
2780
- "expression": {
2781
- "__schema": "TypeRefSchema",
2782
- "location": {
2783
- "filePath": "schema.task.ts",
2784
- "line": 22,
2785
- "character": 36
2786
- },
2787
- "name": "BuildTask",
2788
- "componentId": {
2789
- "_legacy": {
2790
- "scope": "teambit.semantics",
2791
- "name": "schema",
2792
- "version": "1.0.256"
2793
- },
2794
- "_scope": "teambit.semantics"
2795
- }
2796
- }
2797
- }
2798
- ]
2799
- },
2800
- {
2801
- "__schema": "FunctionLikeSchema",
2802
- "location": {
2803
- "filePath": "schema.task.ts",
2804
- "line": 69,
2805
- "character": 1
2806
- },
2807
- "signature": "function getSchemaArtifactPath(): string",
2808
- "name": "getSchemaArtifactPath",
2809
- "params": [],
2810
- "returnType": {
2811
- "__schema": "InferenceTypeSchema",
2812
- "location": {
2813
- "filePath": "schema.task.ts",
2814
- "line": 69,
2815
- "character": 1
2816
- },
2817
- "type": "string"
2818
- },
2819
- "modifiers": [
2820
- "export"
2821
- ]
2822
- },
2823
- {
2824
- "__schema": "FunctionLikeSchema",
2825
- "location": {
2826
- "filePath": "schema.task.ts",
2827
- "line": 73,
2828
- "character": 1
2829
- },
2830
- "signature": "function getSchemaArtifactDef(): ArtifactDefinition",
2831
- "name": "getSchemaArtifactDef",
2832
- "params": [],
2833
- "returnType": {
2834
- "__schema": "TypeRefSchema",
2835
- "location": {
2836
- "filePath": "schema.task.ts",
2837
- "line": 73,
2838
- "character": 1
2839
- },
2840
- "name": "ArtifactDefinition",
2841
- "componentId": {
2842
- "scope": "teambit.pipelines",
2843
- "name": "builder"
2844
- }
2845
- },
2846
- "modifiers": [
2847
- "export"
2848
- ]
2849
- }
2850
- ],
2851
- "internals": []
2852
- },
2853
- {
2854
- "__schema": "ModuleSchema",
2855
- "location": {
2856
- "filePath": "schema-env.ts",
2857
- "line": 1,
2858
- "character": 1
2859
- },
2860
- "exports": [
2861
- {
2862
- "__schema": "InterfaceSchema",
2863
- "location": {
2864
- "filePath": "schema-env.ts",
2865
- "line": 8,
2866
- "character": 1
2867
- },
2868
- "doc": {
2869
- "__schema": "DocSchema",
2870
- "location": {
2871
- "filePath": "schema-env.ts",
2872
- "line": 4,
2873
- "character": 1
2874
- },
2875
- "raw": "/**\n * define a schema extractor to extract type information\n * and docs for your components.\n */",
2876
- "comment": "define a schema extractor to extract type information\nand docs for your components."
2877
- },
2878
- "signature": "interface SchemaEnv",
2879
- "name": "SchemaEnv",
2880
- "members": [
2881
- {
2882
- "__schema": "FunctionLikeSchema",
2883
- "location": {
2884
- "filePath": "schema-env.ts",
2885
- "line": 9,
2886
- "character": 3
2887
- },
2888
- "signature": "(method) SchemaEnv.schemaExtractor(): EnvHandler<SchemaExtractor>",
2889
- "name": "schemaExtractor",
2890
- "params": [],
2891
- "returnType": {
2892
- "__schema": "TypeRefSchema",
2893
- "location": {
2894
- "filePath": "schema-env.ts",
2895
- "line": 9,
2896
- "character": 22
2897
- },
2898
- "name": "EnvHandler",
2899
- "componentId": {
2900
- "scope": "teambit.envs",
2901
- "name": "envs"
2902
- },
2903
- "typeArgs": [
2904
- {
2905
- "__schema": "TypeRefSchema",
2906
- "location": {
2907
- "filePath": "schema-env.ts",
2908
- "line": 9,
2909
- "character": 33
2910
- },
2911
- "name": "SchemaExtractor"
2912
- }
2913
- ]
2914
- },
2915
- "modifiers": []
2916
- }
2917
- ],
2918
- "extendsNodes": []
2919
- }
2920
- ],
2921
- "internals": []
2922
- },
2923
- {
2924
- "__schema": "ModuleSchema",
2925
- "location": {
2926
- "filePath": "schema.main.runtime.ts",
2927
- "line": 1,
2928
- "character": 1
2929
- },
2930
- "exports": [
2931
- {
2932
- "__schema": "TypeSchema",
2933
- "location": {
2934
- "filePath": "schema.main.runtime.ts",
2935
- "line": 28,
2936
- "character": 1
2937
- },
2938
- "signature": "type ParserSlot = SlotRegistry<Parser>",
2939
- "name": "ParserSlot",
2940
- "type": {
2941
- "__schema": "TypeRefSchema",
2942
- "location": {
2943
- "filePath": "schema.main.runtime.ts",
2944
- "line": 28,
2945
- "character": 26
2946
- },
2947
- "name": "SlotRegistry",
2948
- "componentId": {
2949
- "scope": "teambit.harmony",
2950
- "name": "harmony",
2951
- "version": "0.4.6"
2952
- },
2953
- "typeArgs": [
2954
- {
2955
- "__schema": "TypeRefSchema",
2956
- "location": {
2957
- "filePath": "schema.main.runtime.ts",
2958
- "line": 28,
2959
- "character": 39
2960
- },
2961
- "name": "Parser"
2962
- }
2963
- ]
2964
- }
2965
- },
2966
- {
2967
- "__schema": "TypeSchema",
2968
- "location": {
2969
- "filePath": "schema.main.runtime.ts",
2970
- "line": 30,
2971
- "character": 1
2972
- },
2973
- "signature": "type SchemaConfig = {\n defaultParser: string;\n disabled?: boolean | undefined;\n}",
2974
- "name": "SchemaConfig",
2975
- "type": {
2976
- "__schema": "TypeLiteralSchema",
2977
- "location": {
2978
- "filePath": "schema.main.runtime.ts",
2979
- "line": 30,
2980
- "character": 28
2981
- },
2982
- "members": [
2983
- {
2984
- "__schema": "VariableLikeSchema",
2985
- "location": {
2986
- "filePath": "schema.main.runtime.ts",
2987
- "line": 34,
2988
- "character": 3
2989
- },
2990
- "doc": {
2991
- "__schema": "DocSchema",
2992
- "location": {
2993
- "filePath": "schema.main.runtime.ts",
2994
- "line": 31,
2995
- "character": 3
2996
- },
2997
- "raw": "/**\n * default parser\n */",
2998
- "comment": "default parser"
2999
- },
3000
- "signature": "(property) defaultParser: string",
3001
- "name": "defaultParser",
3002
- "type": {
3003
- "__schema": "KeywordTypeSchema",
3004
- "location": {
3005
- "filePath": "schema.main.runtime.ts",
3006
- "line": 34,
3007
- "character": 18
3008
- },
3009
- "name": "string"
3010
- },
3011
- "isOptional": false
3012
- },
3013
- {
3014
- "__schema": "VariableLikeSchema",
3015
- "location": {
3016
- "filePath": "schema.main.runtime.ts",
3017
- "line": 38,
3018
- "character": 3
3019
- },
3020
- "doc": {
3021
- "__schema": "DocSchema",
3022
- "location": {
3023
- "filePath": "schema.main.runtime.ts",
3024
- "line": 35,
3025
- "character": 3
3026
- },
3027
- "raw": "/**\n * disable extracting schema\n */",
3028
- "comment": "disable extracting schema"
3029
- },
3030
- "signature": "(property) disabled?: boolean | undefined",
3031
- "name": "disabled",
3032
- "type": {
3033
- "__schema": "KeywordTypeSchema",
3034
- "location": {
3035
- "filePath": "schema.main.runtime.ts",
3036
- "line": 38,
3037
- "character": 14
3038
- },
3039
- "name": "boolean"
3040
- },
3041
- "isOptional": true
3042
- }
3043
- ]
3044
- }
3045
- },
3046
- {
3047
- "__schema": "ClassSchema",
3048
- "location": {
3049
- "filePath": "schema.main.runtime.ts",
3050
- "line": 44,
3051
- "character": 1
3052
- },
3053
- "doc": {
3054
- "__schema": "DocSchema",
3055
- "location": {
3056
- "filePath": "schema.main.runtime.ts",
3057
- "line": 41,
3058
- "character": 1
3059
- },
3060
- "raw": "/**\n * extension for extracting component schemas.\n */",
3061
- "comment": "extension for extracting component schemas."
3062
- },
3063
- "signature": "class SchemaMain",
3064
- "name": "SchemaMain",
3065
- "members": [
3066
- {
3067
- "__schema": "ConstructorSchema",
3068
- "location": {
3069
- "filePath": "schema.main.runtime.ts",
3070
- "line": 45,
3071
- "character": 3
3072
- },
3073
- "signature": "constructor SchemaMain(parserSlot: ParserSlot, envs: EnvsMain, config: SchemaConfig, builder: BuilderMain, workspace: Workspace, logger: Logger): SchemaMain",
3074
- "name": "constructor",
3075
- "params": [
3076
- {
3077
- "__schema": "ParameterSchema",
3078
- "location": {
3079
- "filePath": "schema.main.runtime.ts",
3080
- "line": 49,
3081
- "character": 5
3082
- },
3083
- "name": "parserSlot",
3084
- "type": {
3085
- "__schema": "TypeRefSchema",
3086
- "location": {
3087
- "filePath": "schema.main.runtime.ts",
3088
- "line": 49,
3089
- "character": 25
3090
- },
3091
- "name": "ParserSlot",
3092
- "internalFilePath": "schema.main.runtime.ts"
3093
- },
3094
- "isOptional": false,
3095
- "isSpread": false
3096
- },
3097
- {
3098
- "__schema": "ParameterSchema",
3099
- "location": {
3100
- "filePath": "schema.main.runtime.ts",
3101
- "line": 51,
3102
- "character": 5
3103
- },
3104
- "name": "envs",
3105
- "type": {
3106
- "__schema": "TypeRefSchema",
3107
- "location": {
3108
- "filePath": "schema.main.runtime.ts",
3109
- "line": 51,
3110
- "character": 19
3111
- },
3112
- "name": "EnvsMain",
3113
- "componentId": {
3114
- "scope": "teambit.envs",
3115
- "name": "envs"
3116
- }
3117
- },
3118
- "isOptional": false,
3119
- "isSpread": false
3120
- },
3121
- {
3122
- "__schema": "ParameterSchema",
3123
- "location": {
3124
- "filePath": "schema.main.runtime.ts",
3125
- "line": 53,
3126
- "character": 5
3127
- },
3128
- "name": "config",
3129
- "type": {
3130
- "__schema": "TypeRefSchema",
3131
- "location": {
3132
- "filePath": "schema.main.runtime.ts",
3133
- "line": 53,
3134
- "character": 21
3135
- },
3136
- "name": "SchemaConfig",
3137
- "internalFilePath": "schema.main.runtime.ts"
3138
- },
3139
- "isOptional": false,
3140
- "isSpread": false
3141
- },
3142
- {
3143
- "__schema": "ParameterSchema",
3144
- "location": {
3145
- "filePath": "schema.main.runtime.ts",
3146
- "line": 55,
3147
- "character": 5
3148
- },
3149
- "name": "builder",
3150
- "type": {
3151
- "__schema": "TypeRefSchema",
3152
- "location": {
3153
- "filePath": "schema.main.runtime.ts",
3154
- "line": 55,
3155
- "character": 22
3156
- },
3157
- "name": "BuilderMain",
3158
- "componentId": {
3159
- "scope": "teambit.pipelines",
3160
- "name": "builder"
3161
- }
3162
- },
3163
- "isOptional": false,
3164
- "isSpread": false
3165
- },
3166
- {
3167
- "__schema": "ParameterSchema",
3168
- "location": {
3169
- "filePath": "schema.main.runtime.ts",
3170
- "line": 57,
3171
- "character": 5
3172
- },
3173
- "name": "workspace",
3174
- "type": {
3175
- "__schema": "TypeRefSchema",
3176
- "location": {
3177
- "filePath": "schema.main.runtime.ts",
3178
- "line": 57,
3179
- "character": 24
3180
- },
3181
- "name": "Workspace",
3182
- "componentId": {
3183
- "scope": "teambit.workspace",
3184
- "name": "workspace"
3185
- }
3186
- },
3187
- "isOptional": false,
3188
- "isSpread": false
3189
- },
3190
- {
3191
- "__schema": "ParameterSchema",
3192
- "location": {
3193
- "filePath": "schema.main.runtime.ts",
3194
- "line": 59,
3195
- "character": 5
3196
- },
3197
- "name": "logger",
3198
- "type": {
3199
- "__schema": "TypeRefSchema",
3200
- "location": {
3201
- "filePath": "schema.main.runtime.ts",
3202
- "line": 59,
3203
- "character": 21
3204
- },
3205
- "name": "Logger",
3206
- "componentId": {
3207
- "scope": "teambit.harmony",
3208
- "name": "logger"
3209
- }
3210
- },
3211
- "isOptional": false,
3212
- "isSpread": false
3213
- }
3214
- ],
3215
- "returnType": {
3216
- "__schema": "ThisTypeSchema",
3217
- "location": {
3218
- "filePath": "schema.main.runtime.ts",
3219
- "line": 44,
3220
- "character": 1
3221
- },
3222
- "name": "SchemaMain"
3223
- },
3224
- "modifiers": []
3225
- },
3226
- {
3227
- "__schema": "FunctionLikeSchema",
3228
- "location": {
3229
- "filePath": "schema.main.runtime.ts",
3230
- "line": 65,
3231
- "character": 3
3232
- },
3233
- "doc": {
3234
- "__schema": "DocSchema",
3235
- "location": {
3236
- "filePath": "schema.main.runtime.ts",
3237
- "line": 62,
3238
- "character": 3
3239
- },
3240
- "raw": "/**\n * get the default parser.\n */",
3241
- "comment": "get the default parser."
3242
- },
3243
- "signature": "(method) SchemaMain.getDefaultParser(): Parser",
3244
- "name": "getDefaultParser",
3245
- "params": [],
3246
- "returnType": {
3247
- "__schema": "TypeRefSchema",
3248
- "location": {
3249
- "filePath": "schema.main.runtime.ts",
3250
- "line": 65,
3251
- "character": 3
3252
- },
3253
- "name": "Parser"
3254
- },
3255
- "modifiers": []
3256
- },
3257
- {
3258
- "__schema": "FunctionLikeSchema",
3259
- "location": {
3260
- "filePath": "schema.main.runtime.ts",
3261
- "line": 69,
3262
- "character": 3
3263
- },
3264
- "signature": "(method) SchemaMain.registerSchemaClass(schema: SchemaNodeConstructor): void",
3265
- "name": "registerSchemaClass",
3266
- "params": [
3267
- {
3268
- "__schema": "ParameterSchema",
3269
- "location": {
3270
- "filePath": "schema.main.runtime.ts",
3271
- "line": 69,
3272
- "character": 23
3273
- },
3274
- "name": "schema",
3275
- "type": {
3276
- "__schema": "TypeRefSchema",
3277
- "location": {
3278
- "filePath": "schema.main.runtime.ts",
3279
- "line": 69,
3280
- "character": 31
3281
- },
3282
- "name": "SchemaNodeConstructor",
3283
- "componentId": {
3284
- "scope": "teambit.semantics",
3285
- "name": "entities/semantic-schema",
3286
- "version": "0.0.68"
3287
- }
3288
- },
3289
- "isOptional": false,
3290
- "isSpread": false
3291
- }
3292
- ],
3293
- "returnType": {
3294
- "__schema": "InferenceTypeSchema",
3295
- "location": {
3296
- "filePath": "schema.main.runtime.ts",
3297
- "line": 69,
3298
- "character": 3
3299
- },
3300
- "type": "void"
3301
- },
3302
- "modifiers": []
3303
- },
3304
- {
3305
- "__schema": "FunctionLikeSchema",
3306
- "location": {
3307
- "filePath": "schema.main.runtime.ts",
3308
- "line": 76,
3309
- "character": 3
3310
- },
3311
- "doc": {
3312
- "__schema": "DocSchema",
3313
- "location": {
3314
- "filePath": "schema.main.runtime.ts",
3315
- "line": 73,
3316
- "character": 3
3317
- },
3318
- "raw": "/**\n * parse a module into a component schema.\n */",
3319
- "comment": "parse a module into a component schema."
3320
- },
3321
- "signature": "(method) SchemaMain.parseModule(path: string, content?: string): Export[]",
3322
- "name": "parseModule",
3323
- "params": [
3324
- {
3325
- "__schema": "ParameterSchema",
3326
- "location": {
3327
- "filePath": "schema.main.runtime.ts",
3328
- "line": 76,
3329
- "character": 15
3330
- },
3331
- "name": "path",
3332
- "type": {
3333
- "__schema": "KeywordTypeSchema",
3334
- "location": {
3335
- "filePath": "schema.main.runtime.ts",
3336
- "line": 76,
3337
- "character": 21
3338
- },
3339
- "name": "string"
3340
- },
3341
- "isOptional": false,
3342
- "isSpread": false
3343
- },
3344
- {
3345
- "__schema": "ParameterSchema",
3346
- "location": {
3347
- "filePath": "schema.main.runtime.ts",
3348
- "line": 76,
3349
- "character": 29
3350
- },
3351
- "name": "content",
3352
- "type": {
3353
- "__schema": "KeywordTypeSchema",
3354
- "location": {
3355
- "filePath": "schema.main.runtime.ts",
3356
- "line": 76,
3357
- "character": 39
3358
- },
3359
- "name": "string"
3360
- },
3361
- "isOptional": true,
3362
- "isSpread": false
3363
- }
3364
- ],
3365
- "returnType": {
3366
- "__schema": "TypeArraySchema",
3367
- "location": {
3368
- "filePath": "schema.main.runtime.ts",
3369
- "line": 76,
3370
- "character": 48
3371
- },
3372
- "type": {
3373
- "__schema": "TypeRefSchema",
3374
- "location": {
3375
- "filePath": "schema.main.runtime.ts",
3376
- "line": 76,
3377
- "character": 48
3378
- },
3379
- "name": "Export",
3380
- "componentId": {
3381
- "scope": "teambit.semantics",
3382
- "name": "entities/semantic-schema",
3383
- "version": "0.0.68"
3384
- }
3385
- }
3386
- },
3387
- "modifiers": []
3388
- },
3389
- {
3390
- "__schema": "FunctionLikeSchema",
3391
- "location": {
3392
- "filePath": "schema.main.runtime.ts",
3393
- "line": 91,
3394
- "character": 3
3395
- },
3396
- "signature": "(method) SchemaMain.getSchemaExtractor(component: Component, tsserverPath?: string, contextPath?: string): SchemaExtractor",
3397
- "name": "getSchemaExtractor",
3398
- "params": [
3399
- {
3400
- "__schema": "ParameterSchema",
3401
- "location": {
3402
- "filePath": "schema.main.runtime.ts",
3403
- "line": 91,
3404
- "character": 22
3405
- },
3406
- "name": "component",
3407
- "type": {
3408
- "__schema": "TypeRefSchema",
3409
- "location": {
3410
- "filePath": "schema.main.runtime.ts",
3411
- "line": 91,
3412
- "character": 33
3413
- },
3414
- "name": "Component",
3415
- "componentId": {
3416
- "scope": "teambit.component",
3417
- "name": "component"
3418
- }
3419
- },
3420
- "isOptional": false,
3421
- "isSpread": false
3422
- },
3423
- {
3424
- "__schema": "ParameterSchema",
3425
- "location": {
3426
- "filePath": "schema.main.runtime.ts",
3427
- "line": 91,
3428
- "character": 44
3429
- },
3430
- "name": "tsserverPath",
3431
- "type": {
3432
- "__schema": "KeywordTypeSchema",
3433
- "location": {
3434
- "filePath": "schema.main.runtime.ts",
3435
- "line": 91,
3436
- "character": 59
3437
- },
3438
- "name": "string"
3439
- },
3440
- "isOptional": true,
3441
- "isSpread": false
3442
- },
3443
- {
3444
- "__schema": "ParameterSchema",
3445
- "location": {
3446
- "filePath": "schema.main.runtime.ts",
3447
- "line": 91,
3448
- "character": 67
3449
- },
3450
- "name": "contextPath",
3451
- "type": {
3452
- "__schema": "KeywordTypeSchema",
3453
- "location": {
3454
- "filePath": "schema.main.runtime.ts",
3455
- "line": 91,
3456
- "character": 81
3457
- },
3458
- "name": "string"
3459
- },
3460
- "isOptional": true,
3461
- "isSpread": false
3462
- }
3463
- ],
3464
- "returnType": {
3465
- "__schema": "TypeRefSchema",
3466
- "location": {
3467
- "filePath": "schema.main.runtime.ts",
3468
- "line": 91,
3469
- "character": 3
3470
- },
3471
- "name": "SchemaExtractor"
3472
- },
3473
- "modifiers": []
3474
- },
3475
- {
3476
- "__schema": "FunctionLikeSchema",
3477
- "location": {
3478
- "filePath": "schema.main.runtime.ts",
3479
- "line": 108,
3480
- "character": 3
3481
- },
3482
- "doc": {
3483
- "__schema": "DocSchema",
3484
- "location": {
3485
- "filePath": "schema.main.runtime.ts",
3486
- "line": 100,
3487
- "character": 3
3488
- },
3489
- "raw": "/**\n * get a schema of a component.\n * @param component target component.\n * @param shouldDisposeResourcesOnceDone for long-running processes, such as bit-start/bit-watch, this is not\n * relevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\n * not kept alive. otherwise, the process will never end.\n *\n */",
3490
- "comment": "get a schema of a component.",
3491
- "tags": [
3492
- {
3493
- "__schema": "PropertyLikeTagSchema",
3494
- "location": {
3495
- "filePath": "schema.main.runtime.ts",
3496
- "line": 102,
3497
- "character": 6
3498
- },
3499
- "name": "component",
3500
- "tagName": "parameter",
3501
- "comment": "target component."
3502
- },
3503
- {
3504
- "__schema": "PropertyLikeTagSchema",
3505
- "location": {
3506
- "filePath": "schema.main.runtime.ts",
3507
- "line": 103,
3508
- "character": 6
3509
- },
3510
- "name": "shouldDisposeResourcesOnceDone",
3511
- "tagName": "parameter",
3512
- "comment": "for long-running processes, such as bit-start/bit-watch, this is not\nrelevant. for calling the API only to get a schema for one component, this is needed to ensure the ts-server is\nnot kept alive. otherwise, the process will never end."
3513
- }
3514
- ]
3515
- },
3516
- "signature": "(method) SchemaMain.getSchema(component: Component, shouldDisposeResourcesOnceDone?: boolean, alwaysRunExtractor?: boolean, tsserverPath?: string, contextPath?: string, skipInternals?: boolean, schemaTransformers?: SchemaTransformer[], apiTransformers?: SchemaNodeTransformer[]): Promise<APISchema>",
3517
- "name": "getSchema",
3518
- "params": [
3519
- {
3520
- "__schema": "ParameterSchema",
3521
- "location": {
3522
- "filePath": "schema.main.runtime.ts",
3523
- "line": 109,
3524
- "character": 5
3525
- },
3526
- "name": "component",
3527
- "type": {
3528
- "__schema": "TypeRefSchema",
3529
- "location": {
3530
- "filePath": "schema.main.runtime.ts",
3531
- "line": 109,
3532
- "character": 16
3533
- },
3534
- "name": "Component",
3535
- "componentId": {
3536
- "scope": "teambit.component",
3537
- "name": "component"
3538
- }
3539
- },
3540
- "isOptional": false,
3541
- "isSpread": false
3542
- },
3543
- {
3544
- "__schema": "ParameterSchema",
3545
- "location": {
3546
- "filePath": "schema.main.runtime.ts",
3547
- "line": 110,
3548
- "character": 5
3549
- },
3550
- "name": "shouldDisposeResourcesOnceDone",
3551
- "type": {
3552
- "__schema": "InferenceTypeSchema",
3553
- "location": {
3554
- "filePath": "schema.main.runtime.ts",
3555
- "line": 110,
3556
- "character": 5
3557
- },
3558
- "type": "boolean"
3559
- },
3560
- "isOptional": true,
3561
- "defaultValue": "false",
3562
- "isSpread": false
3563
- },
3564
- {
3565
- "__schema": "ParameterSchema",
3566
- "location": {
3567
- "filePath": "schema.main.runtime.ts",
3568
- "line": 111,
3569
- "character": 5
3570
- },
3571
- "name": "alwaysRunExtractor",
3572
- "type": {
3573
- "__schema": "InferenceTypeSchema",
3574
- "location": {
3575
- "filePath": "schema.main.runtime.ts",
3576
- "line": 111,
3577
- "character": 5
3578
- },
3579
- "type": "boolean"
3580
- },
3581
- "isOptional": true,
3582
- "defaultValue": "false",
3583
- "isSpread": false
3584
- },
3585
- {
3586
- "__schema": "ParameterSchema",
3587
- "location": {
3588
- "filePath": "schema.main.runtime.ts",
3589
- "line": 112,
3590
- "character": 5
3591
- },
3592
- "name": "tsserverPath",
3593
- "type": {
3594
- "__schema": "KeywordTypeSchema",
3595
- "location": {
3596
- "filePath": "schema.main.runtime.ts",
3597
- "line": 112,
3598
- "character": 20
3599
- },
3600
- "name": "string"
3601
- },
3602
- "isOptional": true,
3603
- "isSpread": false
3604
- },
3605
- {
3606
- "__schema": "ParameterSchema",
3607
- "location": {
3608
- "filePath": "schema.main.runtime.ts",
3609
- "line": 113,
3610
- "character": 5
3611
- },
3612
- "name": "contextPath",
3613
- "type": {
3614
- "__schema": "KeywordTypeSchema",
3615
- "location": {
3616
- "filePath": "schema.main.runtime.ts",
3617
- "line": 113,
3618
- "character": 19
3619
- },
3620
- "name": "string"
3621
- },
3622
- "isOptional": true,
3623
- "isSpread": false
3624
- },
3625
- {
3626
- "__schema": "ParameterSchema",
3627
- "location": {
3628
- "filePath": "schema.main.runtime.ts",
3629
- "line": 114,
3630
- "character": 5
3631
- },
3632
- "name": "skipInternals",
3633
- "type": {
3634
- "__schema": "KeywordTypeSchema",
3635
- "location": {
3636
- "filePath": "schema.main.runtime.ts",
3637
- "line": 114,
3638
- "character": 21
3639
- },
3640
- "name": "boolean"
3641
- },
3642
- "isOptional": true,
3643
- "isSpread": false
3644
- },
3645
- {
3646
- "__schema": "ParameterSchema",
3647
- "location": {
3648
- "filePath": "schema.main.runtime.ts",
3649
- "line": 115,
3650
- "character": 5
3651
- },
3652
- "name": "schemaTransformers",
3653
- "type": {
3654
- "__schema": "TypeArraySchema",
3655
- "location": {
3656
- "filePath": "schema.main.runtime.ts",
3657
- "line": 115,
3658
- "character": 26
3659
- },
3660
- "type": {
3661
- "__schema": "TypeRefSchema",
3662
- "location": {
3663
- "filePath": "schema.main.runtime.ts",
3664
- "line": 115,
3665
- "character": 26
3666
- },
3667
- "name": "SchemaTransformer",
3668
- "componentId": {
3669
- "scope": "teambit.typescript",
3670
- "name": "typescript"
3671
- }
3672
- }
3673
- },
3674
- "isOptional": true,
3675
- "isSpread": false
3676
- },
3677
- {
3678
- "__schema": "ParameterSchema",
3679
- "location": {
3680
- "filePath": "schema.main.runtime.ts",
3681
- "line": 116,
3682
- "character": 5
3683
- },
3684
- "name": "apiTransformers",
3685
- "type": {
3686
- "__schema": "TypeArraySchema",
3687
- "location": {
3688
- "filePath": "schema.main.runtime.ts",
3689
- "line": 116,
3690
- "character": 23
3691
- },
3692
- "type": {
3693
- "__schema": "TypeRefSchema",
3694
- "location": {
3695
- "filePath": "schema.main.runtime.ts",
3696
- "line": 116,
3697
- "character": 23
3698
- },
3699
- "name": "SchemaNodeTransformer",
3700
- "componentId": {
3701
- "scope": "teambit.typescript",
3702
- "name": "typescript"
3703
- }
3704
- }
3705
- },
3706
- "isOptional": true,
3707
- "isSpread": false
3708
- }
3709
- ],
3710
- "returnType": {
3711
- "__schema": "TypeRefSchema",
3712
- "location": {
3713
- "filePath": "schema.main.runtime.ts",
3714
- "line": 117,
3715
- "character": 6
3716
- },
3717
- "name": "Promise",
3718
- "typeArgs": [
3719
- {
3720
- "__schema": "TypeRefSchema",
3721
- "location": {
3722
- "filePath": "schema.main.runtime.ts",
3723
- "line": 117,
3724
- "character": 14
3725
- },
3726
- "name": "APISchema",
3727
- "componentId": {
3728
- "scope": "teambit.semantics",
3729
- "name": "entities/semantic-schema",
3730
- "version": "0.0.68"
3731
- }
3732
- }
3733
- ]
3734
- },
3735
- "modifiers": [
3736
- "async"
3737
- ]
3738
- },
3739
- {
3740
- "__schema": "FunctionLikeSchema",
3741
- "location": {
3742
- "filePath": "schema.main.runtime.ts",
3743
- "line": 180,
3744
- "character": 3
3745
- },
3746
- "signature": "(method) SchemaMain.getSchemaFromObject(obj: Record<string, any>): APISchema",
3747
- "name": "getSchemaFromObject",
3748
- "params": [
3749
- {
3750
- "__schema": "ParameterSchema",
3751
- "location": {
3752
- "filePath": "schema.main.runtime.ts",
3753
- "line": 180,
3754
- "character": 23
3755
- },
3756
- "name": "obj",
3757
- "type": {
3758
- "__schema": "TypeRefSchema",
3759
- "location": {
3760
- "filePath": "schema.main.runtime.ts",
3761
- "line": 180,
3762
- "character": 28
3763
- },
3764
- "name": "Record",
3765
- "typeArgs": [
3766
- {
3767
- "__schema": "KeywordTypeSchema",
3768
- "location": {
3769
- "filePath": "schema.main.runtime.ts",
3770
- "line": 180,
3771
- "character": 35
3772
- },
3773
- "name": "string"
3774
- },
3775
- {
3776
- "__schema": "KeywordTypeSchema",
3777
- "location": {
3778
- "filePath": "schema.main.runtime.ts",
3779
- "line": 180,
3780
- "character": 43
3781
- },
3782
- "name": "any"
3783
- }
3784
- ]
3785
- },
3786
- "isOptional": false,
3787
- "isSpread": false
3788
- }
3789
- ],
3790
- "returnType": {
3791
- "__schema": "TypeRefSchema",
3792
- "location": {
3793
- "filePath": "schema.main.runtime.ts",
3794
- "line": 180,
3795
- "character": 3
3796
- },
3797
- "name": "APISchema",
3798
- "componentId": {
3799
- "scope": "teambit.semantics",
3800
- "name": "entities/semantic-schema",
3801
- "version": "0.0.68"
3802
- }
3803
- },
3804
- "modifiers": []
3805
- },
3806
- {
3807
- "__schema": "FunctionLikeSchema",
3808
- "location": {
3809
- "filePath": "schema.main.runtime.ts",
3810
- "line": 187,
3811
- "character": 3
3812
- },
3813
- "doc": {
3814
- "__schema": "DocSchema",
3815
- "location": {
3816
- "filePath": "schema.main.runtime.ts",
3817
- "line": 184,
3818
- "character": 3
3819
- },
3820
- "raw": "/**\n * register a new parser.\n */",
3821
- "comment": "register a new parser."
3822
- },
3823
- "signature": "(method) SchemaMain.registerParser(parser: Parser): SchemaMain",
3824
- "name": "registerParser",
3825
- "params": [
3826
- {
3827
- "__schema": "ParameterSchema",
3828
- "location": {
3829
- "filePath": "schema.main.runtime.ts",
3830
- "line": 187,
3831
- "character": 18
3832
- },
3833
- "name": "parser",
3834
- "type": {
3835
- "__schema": "TypeRefSchema",
3836
- "location": {
3837
- "filePath": "schema.main.runtime.ts",
3838
- "line": 187,
3839
- "character": 26
3840
- },
3841
- "name": "Parser"
3842
- },
3843
- "isOptional": false,
3844
- "isSpread": false
3845
- }
3846
- ],
3847
- "returnType": {
3848
- "__schema": "TypeRefSchema",
3849
- "location": {
3850
- "filePath": "schema.main.runtime.ts",
3851
- "line": 187,
3852
- "character": 3
3853
- },
3854
- "name": "SchemaMain"
3855
- },
3856
- "modifiers": []
3857
- },
3858
- {
3859
- "__schema": "FunctionLikeSchema",
3860
- "location": {
3861
- "filePath": "schema.main.runtime.ts",
3862
- "line": 192,
3863
- "character": 3
3864
- },
3865
- "signature": "(method) SchemaMain.calcSchemaData(): Promise<{\n disabled?: boolean;\n}>",
3866
- "name": "calcSchemaData",
3867
- "params": [],
3868
- "returnType": {
3869
- "__schema": "TypeRefSchema",
3870
- "location": {
3871
- "filePath": "schema.main.runtime.ts",
3872
- "line": 192,
3873
- "character": 27
3874
- },
3875
- "name": "Promise",
3876
- "typeArgs": [
3877
- {
3878
- "__schema": "TypeLiteralSchema",
3879
- "location": {
3880
- "filePath": "schema.main.runtime.ts",
3881
- "line": 192,
3882
- "character": 35
3883
- },
3884
- "members": [
3885
- {
3886
- "__schema": "VariableLikeSchema",
3887
- "location": {
3888
- "filePath": "schema.main.runtime.ts",
3889
- "line": 192,
3890
- "character": 37
3891
- },
3892
- "signature": "(property) disabled?: boolean | undefined",
3893
- "name": "disabled",
3894
- "type": {
3895
- "__schema": "KeywordTypeSchema",
3896
- "location": {
3897
- "filePath": "schema.main.runtime.ts",
3898
- "line": 192,
3899
- "character": 48
3900
- },
3901
- "name": "boolean"
3902
- },
3903
- "isOptional": true
3904
- }
3905
- ]
3906
- }
3907
- ]
3908
- },
3909
- "modifiers": [
3910
- "async"
3911
- ]
3912
- },
3913
- {
3914
- "__schema": "FunctionLikeSchema",
3915
- "location": {
3916
- "filePath": "schema.main.runtime.ts",
3917
- "line": 198,
3918
- "character": 3
3919
- },
3920
- "signature": "(method) SchemaMain.getSchemaData(component: Component): {\n [key: string]: any;\n} | undefined",
3921
- "name": "getSchemaData",
3922
- "params": [
3923
- {
3924
- "__schema": "ParameterSchema",
3925
- "location": {
3926
- "filePath": "schema.main.runtime.ts",
3927
- "line": 198,
3928
- "character": 17
3929
- },
3930
- "name": "component",
3931
- "type": {
3932
- "__schema": "TypeRefSchema",
3933
- "location": {
3934
- "filePath": "schema.main.runtime.ts",
3935
- "line": 198,
3936
- "character": 28
3937
- },
3938
- "name": "Component",
3939
- "componentId": {
3940
- "scope": "teambit.component",
3941
- "name": "component"
3942
- }
3943
- },
3944
- "isOptional": false,
3945
- "isSpread": false
3946
- }
3947
- ],
3948
- "returnType": {
3949
- "__schema": "InferenceTypeSchema",
3950
- "location": {
3951
- "filePath": "schema.main.runtime.ts",
3952
- "line": 198,
3953
- "character": 3
3954
- },
3955
- "type": "{\n [key: string]: any;\n} | undefined"
3956
- },
3957
- "modifiers": []
3958
- },
3959
- {
3960
- "__schema": "FunctionLikeSchema",
3961
- "location": {
3962
- "filePath": "schema.main.runtime.ts",
3963
- "line": 202,
3964
- "character": 3
3965
- },
3966
- "signature": "(method) SchemaMain.isSchemaTaskDisabled(component: Component): any",
3967
- "name": "isSchemaTaskDisabled",
3968
- "params": [
3969
- {
3970
- "__schema": "ParameterSchema",
3971
- "location": {
3972
- "filePath": "schema.main.runtime.ts",
3973
- "line": 202,
3974
- "character": 24
3975
- },
3976
- "name": "component",
3977
- "type": {
3978
- "__schema": "TypeRefSchema",
3979
- "location": {
3980
- "filePath": "schema.main.runtime.ts",
3981
- "line": 202,
3982
- "character": 35
3983
- },
3984
- "name": "Component",
3985
- "componentId": {
3986
- "scope": "teambit.component",
3987
- "name": "component"
3988
- }
3989
- },
3990
- "isOptional": false,
3991
- "isSpread": false
3992
- }
3993
- ],
3994
- "returnType": {
3995
- "__schema": "InferenceTypeSchema",
3996
- "location": {
3997
- "filePath": "schema.main.runtime.ts",
3998
- "line": 202,
3999
- "character": 3
4000
- },
4001
- "type": "any"
4002
- },
4003
- "modifiers": []
4004
- },
4005
- {
4006
- "__schema": "VariableLikeSchema",
4007
- "location": {
4008
- "filePath": "schema.main.runtime.ts",
4009
- "line": 206,
4010
- "character": 3
4011
- },
4012
- "signature": "(property) SchemaMain.runtime: RuntimeDefinition",
4013
- "name": "runtime",
4014
- "type": {
4015
- "__schema": "InferenceTypeSchema",
4016
- "location": {
4017
- "filePath": "schema.main.runtime.ts",
4018
- "line": 206,
4019
- "character": 3
4020
- },
4021
- "type": "RuntimeDefinition"
4022
- },
4023
- "isOptional": true,
4024
- "defaultValue": "MainRuntime"
4025
- },
4026
- {
4027
- "__schema": "VariableLikeSchema",
4028
- "location": {
4029
- "filePath": "schema.main.runtime.ts",
4030
- "line": 207,
4031
- "character": 3
4032
- },
4033
- "signature": "(property) SchemaMain.dependencies: Aspect[]",
4034
- "name": "dependencies",
4035
- "type": {
4036
- "__schema": "InferenceTypeSchema",
4037
- "location": {
4038
- "filePath": "schema.main.runtime.ts",
4039
- "line": 207,
4040
- "character": 3
4041
- },
4042
- "type": "Aspect[]"
4043
- },
4044
- "isOptional": true,
4045
- "defaultValue": "[\n EnvsAspect,\n CLIAspect,\n ComponentAspect,\n GraphqlAspect,\n LoggerAspect,\n BuilderAspect,\n WorkspaceAspect,\n ScopeAspect,\n ]"
4046
- },
4047
- {
4048
- "__schema": "VariableLikeSchema",
4049
- "location": {
4050
- "filePath": "schema.main.runtime.ts",
4051
- "line": 217,
4052
- "character": 3
4053
- },
4054
- "signature": "(property) SchemaMain.slots: ((registerFn: () => string) => SlotRegistry<Parser>)[]",
4055
- "name": "slots",
4056
- "type": {
4057
- "__schema": "InferenceTypeSchema",
4058
- "location": {
4059
- "filePath": "schema.main.runtime.ts",
4060
- "line": 217,
4061
- "character": 3
4062
- },
4063
- "type": "((registerFn: () => string) => SlotRegistry<Parser>)[]"
4064
- },
4065
- "isOptional": true,
4066
- "defaultValue": "[Slot.withType<Parser>()]"
4067
- },
4068
- {
4069
- "__schema": "VariableLikeSchema",
4070
- "location": {
4071
- "filePath": "schema.main.runtime.ts",
4072
- "line": 219,
4073
- "character": 3
4074
- },
4075
- "signature": "(property) SchemaMain.defaultConfig: {\n defaultParser: string;\n disabled: boolean;\n}",
4076
- "name": "defaultConfig",
4077
- "type": {
4078
- "__schema": "InferenceTypeSchema",
4079
- "location": {
4080
- "filePath": "schema.main.runtime.ts",
4081
- "line": 219,
4082
- "character": 3
4083
- },
4084
- "type": "{\n defaultParser: string;\n disabled: boolean;\n}"
4085
- },
4086
- "isOptional": true,
4087
- "defaultValue": "{\n defaultParser: 'teambit.typescript/typescript',\n disabled: false,\n }"
4088
- },
4089
- {
4090
- "__schema": "FunctionLikeSchema",
4091
- "location": {
4092
- "filePath": "schema.main.runtime.ts",
4093
- "line": 224,
4094
- "character": 3
4095
- },
4096
- "signature": "(method) SchemaMain.provider([envs, cli, component, graphql, loggerMain, builder, workspace, scope]: [\n EnvsMain,\n CLIMain,\n ComponentMain,\n GraphqlMain,\n LoggerMain,\n BuilderMain,\n Workspace,\n ScopeMain\n], config: SchemaConfig, [parserSlot]: [ParserSlot]): Promise<SchemaMain>",
4097
- "name": "provider",
4098
- "params": [
4099
- {
4100
- "__schema": "ParameterSchema",
4101
- "location": {
4102
- "filePath": "schema.main.runtime.ts",
4103
- "line": 225,
4104
- "character": 5
4105
- },
4106
- "name": "[ envs, cli, component, graphql, loggerMain, builder, workspace, scope ]",
4107
- "type": {
4108
- "__schema": "TupleTypeSchema",
4109
- "location": {
4110
- "filePath": "schema.main.runtime.ts",
4111
- "line": 225,
4112
- "character": 77
4113
- },
4114
- "elements": [
4115
- {
4116
- "__schema": "TypeRefSchema",
4117
- "location": {
4118
- "filePath": "schema.main.runtime.ts",
4119
- "line": 226,
4120
- "character": 7
4121
- },
4122
- "name": "EnvsMain",
4123
- "componentId": {
4124
- "scope": "teambit.envs",
4125
- "name": "envs"
4126
- }
4127
- },
4128
- {
4129
- "__schema": "TypeRefSchema",
4130
- "location": {
4131
- "filePath": "schema.main.runtime.ts",
4132
- "line": 227,
4133
- "character": 7
4134
- },
4135
- "name": "CLIMain",
4136
- "componentId": {
4137
- "scope": "teambit.harmony",
4138
- "name": "cli"
4139
- }
4140
- },
4141
- {
4142
- "__schema": "TypeRefSchema",
4143
- "location": {
4144
- "filePath": "schema.main.runtime.ts",
4145
- "line": 228,
4146
- "character": 7
4147
- },
4148
- "name": "ComponentMain",
4149
- "componentId": {
4150
- "scope": "teambit.component",
4151
- "name": "component"
4152
- }
4153
- },
4154
- {
4155
- "__schema": "TypeRefSchema",
4156
- "location": {
4157
- "filePath": "schema.main.runtime.ts",
4158
- "line": 229,
4159
- "character": 7
4160
- },
4161
- "name": "GraphqlMain",
4162
- "componentId": {
4163
- "scope": "teambit.harmony",
4164
- "name": "graphql"
4165
- }
4166
- },
4167
- {
4168
- "__schema": "TypeRefSchema",
4169
- "location": {
4170
- "filePath": "schema.main.runtime.ts",
4171
- "line": 230,
4172
- "character": 7
4173
- },
4174
- "name": "LoggerMain",
4175
- "componentId": {
4176
- "scope": "teambit.harmony",
4177
- "name": "logger"
4178
- }
4179
- },
4180
- {
4181
- "__schema": "TypeRefSchema",
4182
- "location": {
4183
- "filePath": "schema.main.runtime.ts",
4184
- "line": 231,
4185
- "character": 7
4186
- },
4187
- "name": "BuilderMain",
4188
- "componentId": {
4189
- "scope": "teambit.pipelines",
4190
- "name": "builder"
4191
- }
4192
- },
4193
- {
4194
- "__schema": "TypeRefSchema",
4195
- "location": {
4196
- "filePath": "schema.main.runtime.ts",
4197
- "line": 232,
4198
- "character": 7
4199
- },
4200
- "name": "Workspace",
4201
- "componentId": {
4202
- "scope": "teambit.workspace",
4203
- "name": "workspace"
4204
- }
4205
- },
4206
- {
4207
- "__schema": "TypeRefSchema",
4208
- "location": {
4209
- "filePath": "schema.main.runtime.ts",
4210
- "line": 233,
4211
- "character": 7
4212
- },
4213
- "name": "ScopeMain",
4214
- "componentId": {
4215
- "scope": "teambit.scope",
4216
- "name": "scope"
4217
- }
4218
- }
4219
- ]
4220
- },
4221
- "isOptional": false,
4222
- "isSpread": false
4223
- },
4224
- {
4225
- "__schema": "ParameterSchema",
4226
- "location": {
4227
- "filePath": "schema.main.runtime.ts",
4228
- "line": 235,
4229
- "character": 5
4230
- },
4231
- "name": "config",
4232
- "type": {
4233
- "__schema": "TypeRefSchema",
4234
- "location": {
4235
- "filePath": "schema.main.runtime.ts",
4236
- "line": 235,
4237
- "character": 13
4238
- },
4239
- "name": "SchemaConfig",
4240
- "internalFilePath": "schema.main.runtime.ts"
4241
- },
4242
- "isOptional": false,
4243
- "isSpread": false
4244
- },
4245
- {
4246
- "__schema": "ParameterSchema",
4247
- "location": {
4248
- "filePath": "schema.main.runtime.ts",
4249
- "line": 236,
4250
- "character": 5
4251
- },
4252
- "name": "[ parserSlot ]",
4253
- "type": {
4254
- "__schema": "TupleTypeSchema",
4255
- "location": {
4256
- "filePath": "schema.main.runtime.ts",
4257
- "line": 236,
4258
- "character": 19
4259
- },
4260
- "elements": [
4261
- {
4262
- "__schema": "TypeRefSchema",
4263
- "location": {
4264
- "filePath": "schema.main.runtime.ts",
4265
- "line": 236,
4266
- "character": 20
4267
- },
4268
- "name": "ParserSlot",
4269
- "internalFilePath": "schema.main.runtime.ts"
4270
- }
4271
- ]
4272
- },
4273
- "isOptional": false,
4274
- "isSpread": false
4275
- }
4276
- ],
4277
- "returnType": {
4278
- "__schema": "InferenceTypeSchema",
4279
- "location": {
4280
- "filePath": "schema.main.runtime.ts",
4281
- "line": 224,
4282
- "character": 3
4283
- },
4284
- "type": "Promise<SchemaMain>"
4285
- },
4286
- "modifiers": [
4287
- "static",
4288
- "async"
4289
- ]
4290
- }
4291
- ],
4292
- "extendsNodes": [],
4293
- "implementNodes": []
4294
- },
4295
- {
4296
- "__schema": "UnImplementedSchema",
4297
- "location": {
4298
- "filePath": "schema.main.runtime.ts",
4299
- "line": 262,
4300
- "character": 16
4301
- },
4302
- "name": "SchemaMain",
4303
- "type": "Identifier"
4304
- }
4305
- ],
4306
- "internals": [
4307
- {
4308
- "__schema": "UnImplementedSchema",
4309
- "location": {
4310
- "filePath": "schema.main.runtime.ts",
4311
- "line": 260,
4312
- "character": 1
4313
- },
4314
- "name": "SchemaAspect.addRuntime(SchemaMain);",
4315
- "type": "ExpressionStatement"
4316
- }
4317
- ]
4318
- },
4319
- {
4320
- "__schema": "ModuleSchema",
4321
- "location": {
4322
- "filePath": "schema.aspect.ts",
4323
- "line": 1,
4324
- "character": 1
4325
- },
4326
- "exports": [
4327
- {
4328
- "__schema": "VariableLikeSchema",
4329
- "location": {
4330
- "filePath": "schema.aspect.ts",
4331
- "line": 3,
4332
- "character": 14
4333
- },
4334
- "signature": "const SchemaAspect: Aspect",
4335
- "name": "SchemaAspect",
4336
- "type": {
4337
- "__schema": "TypeRefSchema",
4338
- "location": {
4339
- "filePath": "schema.aspect.ts",
4340
- "line": 3,
4341
- "character": 14
4342
- },
4343
- "name": "Aspect",
4344
- "componentId": {
4345
- "scope": "teambit.harmony",
4346
- "name": "harmony",
4347
- "version": "0.4.6"
4348
- }
4349
- },
4350
- "isOptional": false,
4351
- "defaultValue": "Aspect.create({\n id: 'teambit.semantics/schema',\n})"
4352
- }
4353
- ],
4354
- "internals": []
4355
- }
4356
- ],
227
+ "internals": [],
4357
228
  "componentId": {
4358
229
  "scope": "teambit.semantics",
4359
230
  "name": "schema",
4360
- "version": "1.0.256"
231
+ "version": "1.0.258"
4361
232
  },
4362
233
  "taggedModuleExports": []
4363
234
  }