@teambit/worker 0.0.1153 → 0.0.1155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1707 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "VariableLikeSchema",
18
+ "location": {
19
+ "filePath": "worker.aspect.ts",
20
+ "line": 3,
21
+ "character": 14
22
+ },
23
+ "signature": "const WorkerAspect: Aspect",
24
+ "name": "WorkerAspect",
25
+ "type": {
26
+ "__schema": "TypeRefSchema",
27
+ "location": {
28
+ "filePath": "worker.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "name": "Aspect",
33
+ "componentId": {
34
+ "scope": "teambit.harmony",
35
+ "name": "harmony",
36
+ "version": "0.4.6"
37
+ }
38
+ },
39
+ "isOptional": false,
40
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/worker',\n})"
41
+ },
42
+ {
43
+ "__schema": "ClassSchema",
44
+ "location": {
45
+ "filePath": "worker.main.runtime.ts",
46
+ "line": 10,
47
+ "character": 1
48
+ },
49
+ "signature": "class WorkerMain",
50
+ "name": "WorkerMain",
51
+ "members": [
52
+ {
53
+ "__schema": "ConstructorSchema",
54
+ "location": {
55
+ "filePath": "worker.main.runtime.ts",
56
+ "line": 11,
57
+ "character": 3
58
+ },
59
+ "signature": "constructor WorkerMain(workerSlot: WorkerSlot, workerNameSlot: WorkerNameSlot): WorkerMain",
60
+ "name": "constructor",
61
+ "params": [
62
+ {
63
+ "__schema": "ParameterSchema",
64
+ "location": {
65
+ "filePath": "worker.main.runtime.ts",
66
+ "line": 11,
67
+ "character": 15
68
+ },
69
+ "name": "workerSlot",
70
+ "type": {
71
+ "__schema": "TypeRefSchema",
72
+ "location": {
73
+ "filePath": "worker.main.runtime.ts",
74
+ "line": 11,
75
+ "character": 35
76
+ },
77
+ "name": "WorkerSlot"
78
+ },
79
+ "isOptional": false,
80
+ "isSpread": false
81
+ },
82
+ {
83
+ "__schema": "ParameterSchema",
84
+ "location": {
85
+ "filePath": "worker.main.runtime.ts",
86
+ "line": 11,
87
+ "character": 47
88
+ },
89
+ "name": "workerNameSlot",
90
+ "type": {
91
+ "__schema": "TypeRefSchema",
92
+ "location": {
93
+ "filePath": "worker.main.runtime.ts",
94
+ "line": 11,
95
+ "character": 71
96
+ },
97
+ "name": "WorkerNameSlot"
98
+ },
99
+ "isOptional": false,
100
+ "isSpread": false
101
+ }
102
+ ],
103
+ "returnType": {
104
+ "__schema": "ThisTypeSchema",
105
+ "location": {
106
+ "filePath": "worker.main.runtime.ts",
107
+ "line": 10,
108
+ "character": 1
109
+ },
110
+ "name": "WorkerMain"
111
+ },
112
+ "modifiers": []
113
+ },
114
+ {
115
+ "__schema": "VariableLikeSchema",
116
+ "location": {
117
+ "filePath": "worker.main.runtime.ts",
118
+ "line": 13,
119
+ "character": 3
120
+ },
121
+ "signature": "(property) WorkerMain.runtime: RuntimeDefinition",
122
+ "name": "runtime",
123
+ "type": {
124
+ "__schema": "InferenceTypeSchema",
125
+ "location": {
126
+ "filePath": "worker.main.runtime.ts",
127
+ "line": 13,
128
+ "character": 3
129
+ },
130
+ "type": "RuntimeDefinition"
131
+ },
132
+ "isOptional": true,
133
+ "defaultValue": "MainRuntime"
134
+ },
135
+ {
136
+ "__schema": "FunctionLikeSchema",
137
+ "location": {
138
+ "filePath": "worker.main.runtime.ts",
139
+ "line": 15,
140
+ "character": 3
141
+ },
142
+ "signature": "(method) WorkerMain.listWorkers(): HarmonyWorker<any>[]",
143
+ "name": "listWorkers",
144
+ "params": [],
145
+ "returnType": {
146
+ "__schema": "TypeArraySchema",
147
+ "location": {
148
+ "filePath": "worker.main.runtime.ts",
149
+ "line": 15,
150
+ "character": 18
151
+ },
152
+ "type": {
153
+ "__schema": "TypeRefSchema",
154
+ "location": {
155
+ "filePath": "worker.main.runtime.ts",
156
+ "line": 15,
157
+ "character": 18
158
+ },
159
+ "name": "HarmonyWorker",
160
+ "typeArgs": [
161
+ {
162
+ "__schema": "KeywordTypeSchema",
163
+ "location": {
164
+ "filePath": "worker.main.runtime.ts",
165
+ "line": 15,
166
+ "character": 32
167
+ },
168
+ "name": "any"
169
+ }
170
+ ]
171
+ }
172
+ },
173
+ "modifiers": []
174
+ },
175
+ {
176
+ "__schema": "FunctionLikeSchema",
177
+ "location": {
178
+ "filePath": "worker.main.runtime.ts",
179
+ "line": 22,
180
+ "character": 3
181
+ },
182
+ "doc": {
183
+ "__schema": "DocSchema",
184
+ "location": {
185
+ "filePath": "worker.main.runtime.ts",
186
+ "line": 19,
187
+ "character": 3
188
+ },
189
+ "raw": "/**\n * create a new worker.\n */",
190
+ "comment": "create a new worker."
191
+ },
192
+ "signature": "(method) WorkerMain.declareWorker<T>(name: string, path: string): HarmonyWorker<T>",
193
+ "name": "declareWorker",
194
+ "params": [
195
+ {
196
+ "__schema": "ParameterSchema",
197
+ "location": {
198
+ "filePath": "worker.main.runtime.ts",
199
+ "line": 22,
200
+ "character": 20
201
+ },
202
+ "name": "name",
203
+ "type": {
204
+ "__schema": "KeywordTypeSchema",
205
+ "location": {
206
+ "filePath": "worker.main.runtime.ts",
207
+ "line": 22,
208
+ "character": 26
209
+ },
210
+ "name": "string"
211
+ },
212
+ "isOptional": false,
213
+ "isSpread": false
214
+ },
215
+ {
216
+ "__schema": "ParameterSchema",
217
+ "location": {
218
+ "filePath": "worker.main.runtime.ts",
219
+ "line": 22,
220
+ "character": 34
221
+ },
222
+ "name": "path",
223
+ "type": {
224
+ "__schema": "KeywordTypeSchema",
225
+ "location": {
226
+ "filePath": "worker.main.runtime.ts",
227
+ "line": 22,
228
+ "character": 40
229
+ },
230
+ "name": "string"
231
+ },
232
+ "isOptional": false,
233
+ "isSpread": false
234
+ }
235
+ ],
236
+ "returnType": {
237
+ "__schema": "TypeRefSchema",
238
+ "location": {
239
+ "filePath": "worker.main.runtime.ts",
240
+ "line": 22,
241
+ "character": 49
242
+ },
243
+ "name": "HarmonyWorker",
244
+ "typeArgs": [
245
+ {
246
+ "__schema": "TypeRefSchema",
247
+ "location": {
248
+ "filePath": "worker.main.runtime.ts",
249
+ "line": 22,
250
+ "character": 63
251
+ },
252
+ "name": "T"
253
+ }
254
+ ]
255
+ },
256
+ "modifiers": [],
257
+ "typeParams": [
258
+ "T"
259
+ ]
260
+ },
261
+ {
262
+ "__schema": "FunctionLikeSchema",
263
+ "location": {
264
+ "filePath": "worker.main.runtime.ts",
265
+ "line": 49,
266
+ "character": 3
267
+ },
268
+ "signature": "(method) WorkerMain.getWorker<T>(id: string): HarmonyWorker<T>",
269
+ "name": "getWorker",
270
+ "params": [
271
+ {
272
+ "__schema": "ParameterSchema",
273
+ "location": {
274
+ "filePath": "worker.main.runtime.ts",
275
+ "line": 49,
276
+ "character": 16
277
+ },
278
+ "name": "id",
279
+ "type": {
280
+ "__schema": "KeywordTypeSchema",
281
+ "location": {
282
+ "filePath": "worker.main.runtime.ts",
283
+ "line": 49,
284
+ "character": 20
285
+ },
286
+ "name": "string"
287
+ },
288
+ "isOptional": false,
289
+ "isSpread": false
290
+ }
291
+ ],
292
+ "returnType": {
293
+ "__schema": "TypeRefSchema",
294
+ "location": {
295
+ "filePath": "worker.main.runtime.ts",
296
+ "line": 49,
297
+ "character": 29
298
+ },
299
+ "name": "HarmonyWorker",
300
+ "typeArgs": [
301
+ {
302
+ "__schema": "TypeRefSchema",
303
+ "location": {
304
+ "filePath": "worker.main.runtime.ts",
305
+ "line": 49,
306
+ "character": 43
307
+ },
308
+ "name": "T"
309
+ }
310
+ ]
311
+ },
312
+ "modifiers": [],
313
+ "typeParams": [
314
+ "T"
315
+ ]
316
+ },
317
+ {
318
+ "__schema": "VariableLikeSchema",
319
+ "location": {
320
+ "filePath": "worker.main.runtime.ts",
321
+ "line": 53,
322
+ "character": 3
323
+ },
324
+ "signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
325
+ "name": "slots",
326
+ "type": {
327
+ "__schema": "InferenceTypeSchema",
328
+ "location": {
329
+ "filePath": "worker.main.runtime.ts",
330
+ "line": 53,
331
+ "character": 3
332
+ },
333
+ "type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
334
+ },
335
+ "isOptional": true,
336
+ "defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
337
+ },
338
+ {
339
+ "__schema": "VariableLikeSchema",
340
+ "location": {
341
+ "filePath": "worker.main.runtime.ts",
342
+ "line": 55,
343
+ "character": 3
344
+ },
345
+ "signature": "(property) WorkerMain.dependencies: never[]",
346
+ "name": "dependencies",
347
+ "type": {
348
+ "__schema": "InferenceTypeSchema",
349
+ "location": {
350
+ "filePath": "worker.main.runtime.ts",
351
+ "line": 55,
352
+ "character": 3
353
+ },
354
+ "type": "never[]"
355
+ },
356
+ "isOptional": true,
357
+ "defaultValue": "[]"
358
+ },
359
+ {
360
+ "__schema": "FunctionLikeSchema",
361
+ "location": {
362
+ "filePath": "worker.main.runtime.ts",
363
+ "line": 57,
364
+ "character": 3
365
+ },
366
+ "signature": "(method) WorkerMain.provider(_deps: any, _config: any, [workerSlot, workerNameSlot]: [WorkerSlot, WorkerNameSlot]): Promise<WorkerMain>",
367
+ "name": "provider",
368
+ "params": [
369
+ {
370
+ "__schema": "ParameterSchema",
371
+ "location": {
372
+ "filePath": "worker.main.runtime.ts",
373
+ "line": 57,
374
+ "character": 25
375
+ },
376
+ "name": "_deps",
377
+ "type": {
378
+ "__schema": "InferenceTypeSchema",
379
+ "location": {
380
+ "filePath": "worker.main.runtime.ts",
381
+ "line": 57,
382
+ "character": 25
383
+ },
384
+ "type": "any"
385
+ },
386
+ "isOptional": false,
387
+ "isSpread": false
388
+ },
389
+ {
390
+ "__schema": "ParameterSchema",
391
+ "location": {
392
+ "filePath": "worker.main.runtime.ts",
393
+ "line": 57,
394
+ "character": 32
395
+ },
396
+ "name": "_config",
397
+ "type": {
398
+ "__schema": "InferenceTypeSchema",
399
+ "location": {
400
+ "filePath": "worker.main.runtime.ts",
401
+ "line": 57,
402
+ "character": 32
403
+ },
404
+ "type": "any"
405
+ },
406
+ "isOptional": false,
407
+ "isSpread": false
408
+ },
409
+ {
410
+ "__schema": "ParameterSchema",
411
+ "location": {
412
+ "filePath": "worker.main.runtime.ts",
413
+ "line": 57,
414
+ "character": 41
415
+ },
416
+ "name": "[ workerSlot, workerNameSlot ]",
417
+ "type": {
418
+ "__schema": "TupleTypeSchema",
419
+ "location": {
420
+ "filePath": "worker.main.runtime.ts",
421
+ "line": 57,
422
+ "character": 71
423
+ },
424
+ "elements": [
425
+ {
426
+ "__schema": "TypeRefSchema",
427
+ "location": {
428
+ "filePath": "worker.main.runtime.ts",
429
+ "line": 57,
430
+ "character": 72
431
+ },
432
+ "name": "WorkerSlot"
433
+ },
434
+ {
435
+ "__schema": "TypeRefSchema",
436
+ "location": {
437
+ "filePath": "worker.main.runtime.ts",
438
+ "line": 57,
439
+ "character": 84
440
+ },
441
+ "name": "WorkerNameSlot"
442
+ }
443
+ ]
444
+ },
445
+ "isOptional": false,
446
+ "isSpread": false
447
+ }
448
+ ],
449
+ "returnType": {
450
+ "__schema": "InferenceTypeSchema",
451
+ "location": {
452
+ "filePath": "worker.main.runtime.ts",
453
+ "line": 57,
454
+ "character": 3
455
+ },
456
+ "type": "Promise<WorkerMain>"
457
+ },
458
+ "modifiers": [
459
+ "static",
460
+ "async"
461
+ ]
462
+ }
463
+ ],
464
+ "extendsNodes": [],
465
+ "implementNodes": []
466
+ },
467
+ {
468
+ "__schema": "ClassSchema",
469
+ "location": {
470
+ "filePath": "harmony-worker.ts",
471
+ "line": 27,
472
+ "character": 1
473
+ },
474
+ "signature": "class HarmonyWorker<T>",
475
+ "name": "HarmonyWorker",
476
+ "members": [
477
+ {
478
+ "__schema": "ConstructorSchema",
479
+ "location": {
480
+ "filePath": "harmony-worker.ts",
481
+ "line": 28,
482
+ "character": 3
483
+ },
484
+ "signature": "constructor HarmonyWorker<T>(name: string, workerPath: string): HarmonyWorker<T>",
485
+ "name": "constructor",
486
+ "params": [
487
+ {
488
+ "__schema": "ParameterSchema",
489
+ "location": {
490
+ "filePath": "harmony-worker.ts",
491
+ "line": 28,
492
+ "character": 15
493
+ },
494
+ "name": "name",
495
+ "type": {
496
+ "__schema": "KeywordTypeSchema",
497
+ "location": {
498
+ "filePath": "harmony-worker.ts",
499
+ "line": 28,
500
+ "character": 30
501
+ },
502
+ "name": "string"
503
+ },
504
+ "isOptional": false,
505
+ "isSpread": false
506
+ },
507
+ {
508
+ "__schema": "ParameterSchema",
509
+ "location": {
510
+ "filePath": "harmony-worker.ts",
511
+ "line": 28,
512
+ "character": 38
513
+ },
514
+ "name": "workerPath",
515
+ "type": {
516
+ "__schema": "KeywordTypeSchema",
517
+ "location": {
518
+ "filePath": "harmony-worker.ts",
519
+ "line": 28,
520
+ "character": 59
521
+ },
522
+ "name": "string"
523
+ },
524
+ "isOptional": false,
525
+ "isSpread": false
526
+ }
527
+ ],
528
+ "returnType": {
529
+ "__schema": "ThisTypeSchema",
530
+ "location": {
531
+ "filePath": "harmony-worker.ts",
532
+ "line": 27,
533
+ "character": 1
534
+ },
535
+ "name": "HarmonyWorker"
536
+ },
537
+ "modifiers": []
538
+ },
539
+ {
540
+ "__schema": "GetAccessorSchema",
541
+ "location": {
542
+ "filePath": "harmony-worker.ts",
543
+ "line": 34,
544
+ "character": 3
545
+ },
546
+ "signature": "(getter) HarmonyWorker<T>.stdout: internal.Readable | undefined",
547
+ "name": "stdout",
548
+ "type": {
549
+ "__schema": "InferenceTypeSchema",
550
+ "location": {
551
+ "filePath": "harmony-worker.ts",
552
+ "line": 34,
553
+ "character": 3
554
+ },
555
+ "type": "internal.Readable | undefined"
556
+ }
557
+ },
558
+ {
559
+ "__schema": "GetAccessorSchema",
560
+ "location": {
561
+ "filePath": "harmony-worker.ts",
562
+ "line": 38,
563
+ "character": 3
564
+ },
565
+ "signature": "(getter) HarmonyWorker<T>.stderr: internal.Readable | undefined",
566
+ "name": "stderr",
567
+ "type": {
568
+ "__schema": "InferenceTypeSchema",
569
+ "location": {
570
+ "filePath": "harmony-worker.ts",
571
+ "line": 38,
572
+ "character": 3
573
+ },
574
+ "type": "internal.Readable | undefined"
575
+ }
576
+ },
577
+ {
578
+ "__schema": "GetAccessorSchema",
579
+ "location": {
580
+ "filePath": "harmony-worker.ts",
581
+ "line": 42,
582
+ "character": 3
583
+ },
584
+ "signature": "(getter) HarmonyWorker<T>.stdin: internal.Writable | null | undefined",
585
+ "name": "stdin",
586
+ "type": {
587
+ "__schema": "InferenceTypeSchema",
588
+ "location": {
589
+ "filePath": "harmony-worker.ts",
590
+ "line": 42,
591
+ "character": 3
592
+ },
593
+ "type": "internal.Writable | null | undefined"
594
+ }
595
+ },
596
+ {
597
+ "__schema": "FunctionLikeSchema",
598
+ "location": {
599
+ "filePath": "harmony-worker.ts",
600
+ "line": 56,
601
+ "character": 3
602
+ },
603
+ "signature": "(method) HarmonyWorker<T>.initiate(options: Partial<InitOptions>): Remote<T>",
604
+ "name": "initiate",
605
+ "params": [
606
+ {
607
+ "__schema": "ParameterSchema",
608
+ "location": {
609
+ "filePath": "harmony-worker.ts",
610
+ "line": 56,
611
+ "character": 12
612
+ },
613
+ "name": "options",
614
+ "type": {
615
+ "__schema": "TypeRefSchema",
616
+ "location": {
617
+ "filePath": "harmony-worker.ts",
618
+ "line": 56,
619
+ "character": 21
620
+ },
621
+ "name": "Partial",
622
+ "typeArgs": [
623
+ {
624
+ "__schema": "TypeRefSchema",
625
+ "location": {
626
+ "filePath": "harmony-worker.ts",
627
+ "line": 56,
628
+ "character": 29
629
+ },
630
+ "name": "InitOptions"
631
+ }
632
+ ]
633
+ },
634
+ "isOptional": false,
635
+ "isSpread": false
636
+ }
637
+ ],
638
+ "returnType": {
639
+ "__schema": "TypeRefSchema",
640
+ "location": {
641
+ "filePath": "harmony-worker.ts",
642
+ "line": 56,
643
+ "character": 44
644
+ },
645
+ "name": "Remote",
646
+ "typeArgs": [
647
+ {
648
+ "__schema": "TypeRefSchema",
649
+ "location": {
650
+ "filePath": "harmony-worker.ts",
651
+ "line": 56,
652
+ "character": 51
653
+ },
654
+ "name": "T"
655
+ }
656
+ ]
657
+ },
658
+ "modifiers": []
659
+ },
660
+ {
661
+ "__schema": "FunctionLikeSchema",
662
+ "location": {
663
+ "filePath": "harmony-worker.ts",
664
+ "line": 64,
665
+ "character": 3
666
+ },
667
+ "signature": "(method) HarmonyWorker<T>.get(): Remote<T> | undefined",
668
+ "name": "get",
669
+ "params": [],
670
+ "returnType": {
671
+ "__schema": "InferenceTypeSchema",
672
+ "location": {
673
+ "filePath": "harmony-worker.ts",
674
+ "line": 64,
675
+ "character": 3
676
+ },
677
+ "type": "Remote<T> | undefined"
678
+ },
679
+ "modifiers": []
680
+ },
681
+ {
682
+ "__schema": "FunctionLikeSchema",
683
+ "location": {
684
+ "filePath": "harmony-worker.ts",
685
+ "line": 68,
686
+ "character": 3
687
+ },
688
+ "signature": "(method) HarmonyWorker<T>.terminate(): Promise<void>",
689
+ "name": "terminate",
690
+ "params": [],
691
+ "returnType": {
692
+ "__schema": "InferenceTypeSchema",
693
+ "location": {
694
+ "filePath": "harmony-worker.ts",
695
+ "line": 68,
696
+ "character": 3
697
+ },
698
+ "type": "Promise<void>"
699
+ },
700
+ "modifiers": [
701
+ "async"
702
+ ]
703
+ }
704
+ ],
705
+ "typeParams": [
706
+ "T"
707
+ ],
708
+ "extendsNodes": [],
709
+ "implementNodes": []
710
+ },
711
+ {
712
+ "__schema": "FunctionLikeSchema",
713
+ "location": {
714
+ "filePath": "expose.ts",
715
+ "line": 25,
716
+ "character": 1
717
+ },
718
+ "signature": "function expose(object: any): void",
719
+ "name": "expose",
720
+ "params": [
721
+ {
722
+ "__schema": "ParameterSchema",
723
+ "location": {
724
+ "filePath": "expose.ts",
725
+ "line": 25,
726
+ "character": 24
727
+ },
728
+ "name": "object",
729
+ "type": {
730
+ "__schema": "KeywordTypeSchema",
731
+ "location": {
732
+ "filePath": "expose.ts",
733
+ "line": 25,
734
+ "character": 32
735
+ },
736
+ "name": "any"
737
+ },
738
+ "isOptional": false,
739
+ "isSpread": false
740
+ }
741
+ ],
742
+ "returnType": {
743
+ "__schema": "InferenceTypeSchema",
744
+ "location": {
745
+ "filePath": "expose.ts",
746
+ "line": 25,
747
+ "character": 1
748
+ },
749
+ "type": "void"
750
+ },
751
+ "modifiers": [
752
+ "export"
753
+ ]
754
+ },
755
+ {
756
+ "__schema": "UnImplementedSchema",
757
+ "location": {
758
+ "filePath": "index.ts",
759
+ "line": 10,
760
+ "character": 16
761
+ },
762
+ "name": "WorkerAspect",
763
+ "type": "Identifier"
764
+ }
765
+ ],
766
+ "internals": [
767
+ {
768
+ "__schema": "UnImplementedSchema",
769
+ "location": {
770
+ "filePath": "index.ts",
771
+ "line": 4,
772
+ "character": 1
773
+ },
774
+ "name": "setFunctionHandlers();",
775
+ "type": "ExpressionStatement"
776
+ }
777
+ ]
778
+ },
779
+ "internals": [
780
+ {
781
+ "__schema": "ModuleSchema",
782
+ "location": {
783
+ "filePath": "worker.aspect.ts",
784
+ "line": 1,
785
+ "character": 1
786
+ },
787
+ "exports": [
788
+ {
789
+ "__schema": "VariableLikeSchema",
790
+ "location": {
791
+ "filePath": "worker.aspect.ts",
792
+ "line": 3,
793
+ "character": 14
794
+ },
795
+ "signature": "const WorkerAspect: Aspect",
796
+ "name": "WorkerAspect",
797
+ "type": {
798
+ "__schema": "TypeRefSchema",
799
+ "location": {
800
+ "filePath": "worker.aspect.ts",
801
+ "line": 3,
802
+ "character": 14
803
+ },
804
+ "name": "Aspect",
805
+ "componentId": {
806
+ "scope": "teambit.harmony",
807
+ "name": "harmony",
808
+ "version": "0.4.6"
809
+ }
810
+ },
811
+ "isOptional": false,
812
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/worker',\n})"
813
+ }
814
+ ],
815
+ "internals": []
816
+ },
817
+ {
818
+ "__schema": "ModuleSchema",
819
+ "location": {
820
+ "filePath": "worker.main.runtime.ts",
821
+ "line": 1,
822
+ "character": 1
823
+ },
824
+ "exports": [
825
+ {
826
+ "__schema": "TypeSchema",
827
+ "location": {
828
+ "filePath": "worker.main.runtime.ts",
829
+ "line": 6,
830
+ "character": 1
831
+ },
832
+ "signature": "type WorkerSlot = SlotRegistry<HarmonyWorker<unknown>>",
833
+ "name": "WorkerSlot",
834
+ "type": {
835
+ "__schema": "TypeRefSchema",
836
+ "location": {
837
+ "filePath": "worker.main.runtime.ts",
838
+ "line": 6,
839
+ "character": 26
840
+ },
841
+ "name": "SlotRegistry",
842
+ "typeArgs": [
843
+ {
844
+ "__schema": "TypeRefSchema",
845
+ "location": {
846
+ "filePath": "worker.main.runtime.ts",
847
+ "line": 6,
848
+ "character": 39
849
+ },
850
+ "name": "HarmonyWorker",
851
+ "typeArgs": [
852
+ {
853
+ "__schema": "KeywordTypeSchema",
854
+ "location": {
855
+ "filePath": "worker.main.runtime.ts",
856
+ "line": 6,
857
+ "character": 53
858
+ },
859
+ "name": "unknown"
860
+ }
861
+ ]
862
+ }
863
+ ]
864
+ }
865
+ },
866
+ {
867
+ "__schema": "TypeSchema",
868
+ "location": {
869
+ "filePath": "worker.main.runtime.ts",
870
+ "line": 8,
871
+ "character": 1
872
+ },
873
+ "signature": "type WorkerNameSlot = SlotRegistry<string>",
874
+ "name": "WorkerNameSlot",
875
+ "type": {
876
+ "__schema": "TypeRefSchema",
877
+ "location": {
878
+ "filePath": "worker.main.runtime.ts",
879
+ "line": 8,
880
+ "character": 30
881
+ },
882
+ "name": "SlotRegistry",
883
+ "typeArgs": [
884
+ {
885
+ "__schema": "KeywordTypeSchema",
886
+ "location": {
887
+ "filePath": "worker.main.runtime.ts",
888
+ "line": 8,
889
+ "character": 43
890
+ },
891
+ "name": "string"
892
+ }
893
+ ]
894
+ }
895
+ },
896
+ {
897
+ "__schema": "ClassSchema",
898
+ "location": {
899
+ "filePath": "worker.main.runtime.ts",
900
+ "line": 10,
901
+ "character": 1
902
+ },
903
+ "signature": "class WorkerMain",
904
+ "name": "WorkerMain",
905
+ "members": [
906
+ {
907
+ "__schema": "ConstructorSchema",
908
+ "location": {
909
+ "filePath": "worker.main.runtime.ts",
910
+ "line": 11,
911
+ "character": 3
912
+ },
913
+ "signature": "constructor WorkerMain(workerSlot: WorkerSlot, workerNameSlot: WorkerNameSlot): WorkerMain",
914
+ "name": "constructor",
915
+ "params": [
916
+ {
917
+ "__schema": "ParameterSchema",
918
+ "location": {
919
+ "filePath": "worker.main.runtime.ts",
920
+ "line": 11,
921
+ "character": 15
922
+ },
923
+ "name": "workerSlot",
924
+ "type": {
925
+ "__schema": "TypeRefSchema",
926
+ "location": {
927
+ "filePath": "worker.main.runtime.ts",
928
+ "line": 11,
929
+ "character": 35
930
+ },
931
+ "name": "WorkerSlot"
932
+ },
933
+ "isOptional": false,
934
+ "isSpread": false
935
+ },
936
+ {
937
+ "__schema": "ParameterSchema",
938
+ "location": {
939
+ "filePath": "worker.main.runtime.ts",
940
+ "line": 11,
941
+ "character": 47
942
+ },
943
+ "name": "workerNameSlot",
944
+ "type": {
945
+ "__schema": "TypeRefSchema",
946
+ "location": {
947
+ "filePath": "worker.main.runtime.ts",
948
+ "line": 11,
949
+ "character": 71
950
+ },
951
+ "name": "WorkerNameSlot"
952
+ },
953
+ "isOptional": false,
954
+ "isSpread": false
955
+ }
956
+ ],
957
+ "returnType": {
958
+ "__schema": "ThisTypeSchema",
959
+ "location": {
960
+ "filePath": "worker.main.runtime.ts",
961
+ "line": 10,
962
+ "character": 1
963
+ },
964
+ "name": "WorkerMain"
965
+ },
966
+ "modifiers": []
967
+ },
968
+ {
969
+ "__schema": "VariableLikeSchema",
970
+ "location": {
971
+ "filePath": "worker.main.runtime.ts",
972
+ "line": 13,
973
+ "character": 3
974
+ },
975
+ "signature": "(property) WorkerMain.runtime: RuntimeDefinition",
976
+ "name": "runtime",
977
+ "type": {
978
+ "__schema": "InferenceTypeSchema",
979
+ "location": {
980
+ "filePath": "worker.main.runtime.ts",
981
+ "line": 13,
982
+ "character": 3
983
+ },
984
+ "type": "RuntimeDefinition"
985
+ },
986
+ "isOptional": true,
987
+ "defaultValue": "MainRuntime"
988
+ },
989
+ {
990
+ "__schema": "FunctionLikeSchema",
991
+ "location": {
992
+ "filePath": "worker.main.runtime.ts",
993
+ "line": 15,
994
+ "character": 3
995
+ },
996
+ "signature": "(method) WorkerMain.listWorkers(): HarmonyWorker<any>[]",
997
+ "name": "listWorkers",
998
+ "params": [],
999
+ "returnType": {
1000
+ "__schema": "TypeArraySchema",
1001
+ "location": {
1002
+ "filePath": "worker.main.runtime.ts",
1003
+ "line": 15,
1004
+ "character": 18
1005
+ },
1006
+ "type": {
1007
+ "__schema": "TypeRefSchema",
1008
+ "location": {
1009
+ "filePath": "worker.main.runtime.ts",
1010
+ "line": 15,
1011
+ "character": 18
1012
+ },
1013
+ "name": "HarmonyWorker",
1014
+ "typeArgs": [
1015
+ {
1016
+ "__schema": "KeywordTypeSchema",
1017
+ "location": {
1018
+ "filePath": "worker.main.runtime.ts",
1019
+ "line": 15,
1020
+ "character": 32
1021
+ },
1022
+ "name": "any"
1023
+ }
1024
+ ]
1025
+ }
1026
+ },
1027
+ "modifiers": []
1028
+ },
1029
+ {
1030
+ "__schema": "FunctionLikeSchema",
1031
+ "location": {
1032
+ "filePath": "worker.main.runtime.ts",
1033
+ "line": 22,
1034
+ "character": 3
1035
+ },
1036
+ "doc": {
1037
+ "__schema": "DocSchema",
1038
+ "location": {
1039
+ "filePath": "worker.main.runtime.ts",
1040
+ "line": 19,
1041
+ "character": 3
1042
+ },
1043
+ "raw": "/**\n * create a new worker.\n */",
1044
+ "comment": "create a new worker."
1045
+ },
1046
+ "signature": "(method) WorkerMain.declareWorker<T>(name: string, path: string): HarmonyWorker<T>",
1047
+ "name": "declareWorker",
1048
+ "params": [
1049
+ {
1050
+ "__schema": "ParameterSchema",
1051
+ "location": {
1052
+ "filePath": "worker.main.runtime.ts",
1053
+ "line": 22,
1054
+ "character": 20
1055
+ },
1056
+ "name": "name",
1057
+ "type": {
1058
+ "__schema": "KeywordTypeSchema",
1059
+ "location": {
1060
+ "filePath": "worker.main.runtime.ts",
1061
+ "line": 22,
1062
+ "character": 26
1063
+ },
1064
+ "name": "string"
1065
+ },
1066
+ "isOptional": false,
1067
+ "isSpread": false
1068
+ },
1069
+ {
1070
+ "__schema": "ParameterSchema",
1071
+ "location": {
1072
+ "filePath": "worker.main.runtime.ts",
1073
+ "line": 22,
1074
+ "character": 34
1075
+ },
1076
+ "name": "path",
1077
+ "type": {
1078
+ "__schema": "KeywordTypeSchema",
1079
+ "location": {
1080
+ "filePath": "worker.main.runtime.ts",
1081
+ "line": 22,
1082
+ "character": 40
1083
+ },
1084
+ "name": "string"
1085
+ },
1086
+ "isOptional": false,
1087
+ "isSpread": false
1088
+ }
1089
+ ],
1090
+ "returnType": {
1091
+ "__schema": "TypeRefSchema",
1092
+ "location": {
1093
+ "filePath": "worker.main.runtime.ts",
1094
+ "line": 22,
1095
+ "character": 49
1096
+ },
1097
+ "name": "HarmonyWorker",
1098
+ "typeArgs": [
1099
+ {
1100
+ "__schema": "TypeRefSchema",
1101
+ "location": {
1102
+ "filePath": "worker.main.runtime.ts",
1103
+ "line": 22,
1104
+ "character": 63
1105
+ },
1106
+ "name": "T"
1107
+ }
1108
+ ]
1109
+ },
1110
+ "modifiers": [],
1111
+ "typeParams": [
1112
+ "T"
1113
+ ]
1114
+ },
1115
+ {
1116
+ "__schema": "FunctionLikeSchema",
1117
+ "location": {
1118
+ "filePath": "worker.main.runtime.ts",
1119
+ "line": 49,
1120
+ "character": 3
1121
+ },
1122
+ "signature": "(method) WorkerMain.getWorker<T>(id: string): HarmonyWorker<T>",
1123
+ "name": "getWorker",
1124
+ "params": [
1125
+ {
1126
+ "__schema": "ParameterSchema",
1127
+ "location": {
1128
+ "filePath": "worker.main.runtime.ts",
1129
+ "line": 49,
1130
+ "character": 16
1131
+ },
1132
+ "name": "id",
1133
+ "type": {
1134
+ "__schema": "KeywordTypeSchema",
1135
+ "location": {
1136
+ "filePath": "worker.main.runtime.ts",
1137
+ "line": 49,
1138
+ "character": 20
1139
+ },
1140
+ "name": "string"
1141
+ },
1142
+ "isOptional": false,
1143
+ "isSpread": false
1144
+ }
1145
+ ],
1146
+ "returnType": {
1147
+ "__schema": "TypeRefSchema",
1148
+ "location": {
1149
+ "filePath": "worker.main.runtime.ts",
1150
+ "line": 49,
1151
+ "character": 29
1152
+ },
1153
+ "name": "HarmonyWorker",
1154
+ "typeArgs": [
1155
+ {
1156
+ "__schema": "TypeRefSchema",
1157
+ "location": {
1158
+ "filePath": "worker.main.runtime.ts",
1159
+ "line": 49,
1160
+ "character": 43
1161
+ },
1162
+ "name": "T"
1163
+ }
1164
+ ]
1165
+ },
1166
+ "modifiers": [],
1167
+ "typeParams": [
1168
+ "T"
1169
+ ]
1170
+ },
1171
+ {
1172
+ "__schema": "VariableLikeSchema",
1173
+ "location": {
1174
+ "filePath": "worker.main.runtime.ts",
1175
+ "line": 53,
1176
+ "character": 3
1177
+ },
1178
+ "signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
1179
+ "name": "slots",
1180
+ "type": {
1181
+ "__schema": "InferenceTypeSchema",
1182
+ "location": {
1183
+ "filePath": "worker.main.runtime.ts",
1184
+ "line": 53,
1185
+ "character": 3
1186
+ },
1187
+ "type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
1188
+ },
1189
+ "isOptional": true,
1190
+ "defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
1191
+ },
1192
+ {
1193
+ "__schema": "VariableLikeSchema",
1194
+ "location": {
1195
+ "filePath": "worker.main.runtime.ts",
1196
+ "line": 55,
1197
+ "character": 3
1198
+ },
1199
+ "signature": "(property) WorkerMain.dependencies: never[]",
1200
+ "name": "dependencies",
1201
+ "type": {
1202
+ "__schema": "InferenceTypeSchema",
1203
+ "location": {
1204
+ "filePath": "worker.main.runtime.ts",
1205
+ "line": 55,
1206
+ "character": 3
1207
+ },
1208
+ "type": "never[]"
1209
+ },
1210
+ "isOptional": true,
1211
+ "defaultValue": "[]"
1212
+ },
1213
+ {
1214
+ "__schema": "FunctionLikeSchema",
1215
+ "location": {
1216
+ "filePath": "worker.main.runtime.ts",
1217
+ "line": 57,
1218
+ "character": 3
1219
+ },
1220
+ "signature": "(method) WorkerMain.provider(_deps: any, _config: any, [workerSlot, workerNameSlot]: [WorkerSlot, WorkerNameSlot]): Promise<WorkerMain>",
1221
+ "name": "provider",
1222
+ "params": [
1223
+ {
1224
+ "__schema": "ParameterSchema",
1225
+ "location": {
1226
+ "filePath": "worker.main.runtime.ts",
1227
+ "line": 57,
1228
+ "character": 25
1229
+ },
1230
+ "name": "_deps",
1231
+ "type": {
1232
+ "__schema": "InferenceTypeSchema",
1233
+ "location": {
1234
+ "filePath": "worker.main.runtime.ts",
1235
+ "line": 57,
1236
+ "character": 25
1237
+ },
1238
+ "type": "any"
1239
+ },
1240
+ "isOptional": false,
1241
+ "isSpread": false
1242
+ },
1243
+ {
1244
+ "__schema": "ParameterSchema",
1245
+ "location": {
1246
+ "filePath": "worker.main.runtime.ts",
1247
+ "line": 57,
1248
+ "character": 32
1249
+ },
1250
+ "name": "_config",
1251
+ "type": {
1252
+ "__schema": "InferenceTypeSchema",
1253
+ "location": {
1254
+ "filePath": "worker.main.runtime.ts",
1255
+ "line": 57,
1256
+ "character": 32
1257
+ },
1258
+ "type": "any"
1259
+ },
1260
+ "isOptional": false,
1261
+ "isSpread": false
1262
+ },
1263
+ {
1264
+ "__schema": "ParameterSchema",
1265
+ "location": {
1266
+ "filePath": "worker.main.runtime.ts",
1267
+ "line": 57,
1268
+ "character": 41
1269
+ },
1270
+ "name": "[ workerSlot, workerNameSlot ]",
1271
+ "type": {
1272
+ "__schema": "TupleTypeSchema",
1273
+ "location": {
1274
+ "filePath": "worker.main.runtime.ts",
1275
+ "line": 57,
1276
+ "character": 71
1277
+ },
1278
+ "elements": [
1279
+ {
1280
+ "__schema": "TypeRefSchema",
1281
+ "location": {
1282
+ "filePath": "worker.main.runtime.ts",
1283
+ "line": 57,
1284
+ "character": 72
1285
+ },
1286
+ "name": "WorkerSlot"
1287
+ },
1288
+ {
1289
+ "__schema": "TypeRefSchema",
1290
+ "location": {
1291
+ "filePath": "worker.main.runtime.ts",
1292
+ "line": 57,
1293
+ "character": 84
1294
+ },
1295
+ "name": "WorkerNameSlot"
1296
+ }
1297
+ ]
1298
+ },
1299
+ "isOptional": false,
1300
+ "isSpread": false
1301
+ }
1302
+ ],
1303
+ "returnType": {
1304
+ "__schema": "InferenceTypeSchema",
1305
+ "location": {
1306
+ "filePath": "worker.main.runtime.ts",
1307
+ "line": 57,
1308
+ "character": 3
1309
+ },
1310
+ "type": "Promise<WorkerMain>"
1311
+ },
1312
+ "modifiers": [
1313
+ "static",
1314
+ "async"
1315
+ ]
1316
+ }
1317
+ ],
1318
+ "extendsNodes": [],
1319
+ "implementNodes": []
1320
+ }
1321
+ ],
1322
+ "internals": [
1323
+ {
1324
+ "__schema": "UnImplementedSchema",
1325
+ "location": {
1326
+ "filePath": "worker.main.runtime.ts",
1327
+ "line": 62,
1328
+ "character": 1
1329
+ },
1330
+ "name": "WorkerAspect.addRuntime(WorkerMain);",
1331
+ "type": "ExpressionStatement"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ "__schema": "ModuleSchema",
1337
+ "location": {
1338
+ "filePath": "harmony-worker.ts",
1339
+ "line": 2,
1340
+ "character": 1
1341
+ },
1342
+ "exports": [
1343
+ {
1344
+ "__schema": "TypeSchema",
1345
+ "location": {
1346
+ "filePath": "harmony-worker.ts",
1347
+ "line": 6,
1348
+ "character": 1
1349
+ },
1350
+ "signature": "type InitOptions = {\n stdout: boolean;\n stderr: boolean;\n stdin: boolean;\n}",
1351
+ "name": "InitOptions",
1352
+ "type": {
1353
+ "__schema": "TypeLiteralSchema",
1354
+ "location": {
1355
+ "filePath": "harmony-worker.ts",
1356
+ "line": 6,
1357
+ "character": 27
1358
+ },
1359
+ "members": [
1360
+ {
1361
+ "__schema": "VariableLikeSchema",
1362
+ "location": {
1363
+ "filePath": "harmony-worker.ts",
1364
+ "line": 11,
1365
+ "character": 3
1366
+ },
1367
+ "doc": {
1368
+ "__schema": "DocSchema",
1369
+ "location": {
1370
+ "filePath": "harmony-worker.ts",
1371
+ "line": 7,
1372
+ "character": 3
1373
+ },
1374
+ "raw": "/**\n * Determines whether stdout should be piped into the parent process.\n * If this is set to true, then worker.stdout is NOT automatically piped through to process.stdout in the parent.\n */",
1375
+ "comment": "Determines whether stdout should be piped into the parent process.\nIf this is set to true, then worker.stdout is NOT automatically piped through to process.stdout in the parent."
1376
+ },
1377
+ "signature": "(property) stdout: boolean",
1378
+ "name": "stdout",
1379
+ "type": {
1380
+ "__schema": "KeywordTypeSchema",
1381
+ "location": {
1382
+ "filePath": "harmony-worker.ts",
1383
+ "line": 11,
1384
+ "character": 11
1385
+ },
1386
+ "name": "boolean"
1387
+ },
1388
+ "isOptional": false
1389
+ },
1390
+ {
1391
+ "__schema": "VariableLikeSchema",
1392
+ "location": {
1393
+ "filePath": "harmony-worker.ts",
1394
+ "line": 17,
1395
+ "character": 3
1396
+ },
1397
+ "doc": {
1398
+ "__schema": "DocSchema",
1399
+ "location": {
1400
+ "filePath": "harmony-worker.ts",
1401
+ "line": 13,
1402
+ "character": 3
1403
+ },
1404
+ "raw": "/**\n * Determines whether stderr should be piped into the parent process.\n * If this is set to true, then worker.stderr is NOT automatically piped through to process.stderr in the parent.\n */",
1405
+ "comment": "Determines whether stderr should be piped into the parent process.\nIf this is set to true, then worker.stderr is NOT automatically piped through to process.stderr in the parent."
1406
+ },
1407
+ "signature": "(property) stderr: boolean",
1408
+ "name": "stderr",
1409
+ "type": {
1410
+ "__schema": "KeywordTypeSchema",
1411
+ "location": {
1412
+ "filePath": "harmony-worker.ts",
1413
+ "line": 17,
1414
+ "character": 11
1415
+ },
1416
+ "name": "boolean"
1417
+ },
1418
+ "isOptional": false
1419
+ },
1420
+ {
1421
+ "__schema": "VariableLikeSchema",
1422
+ "location": {
1423
+ "filePath": "harmony-worker.ts",
1424
+ "line": 24,
1425
+ "character": 3
1426
+ },
1427
+ "doc": {
1428
+ "__schema": "DocSchema",
1429
+ "location": {
1430
+ "filePath": "harmony-worker.ts",
1431
+ "line": 19,
1432
+ "character": 3
1433
+ },
1434
+ "raw": "/**\n * Determines whether stdin should be piped into the parent process.\n * If this is set to true, then worker.stdin provides a writable stream whose contents appear as process.stdin inside\n * the Worker. By default, no data is provided.\n */",
1435
+ "comment": "Determines whether stdin should be piped into the parent process.\nIf this is set to true, then worker.stdin provides a writable stream whose contents appear as process.stdin inside\nthe Worker. By default, no data is provided."
1436
+ },
1437
+ "signature": "(property) stdin: boolean",
1438
+ "name": "stdin",
1439
+ "type": {
1440
+ "__schema": "KeywordTypeSchema",
1441
+ "location": {
1442
+ "filePath": "harmony-worker.ts",
1443
+ "line": 24,
1444
+ "character": 10
1445
+ },
1446
+ "name": "boolean"
1447
+ },
1448
+ "isOptional": false
1449
+ }
1450
+ ]
1451
+ }
1452
+ },
1453
+ {
1454
+ "__schema": "ClassSchema",
1455
+ "location": {
1456
+ "filePath": "harmony-worker.ts",
1457
+ "line": 27,
1458
+ "character": 1
1459
+ },
1460
+ "signature": "class HarmonyWorker<T>",
1461
+ "name": "HarmonyWorker",
1462
+ "members": [
1463
+ {
1464
+ "__schema": "ConstructorSchema",
1465
+ "location": {
1466
+ "filePath": "harmony-worker.ts",
1467
+ "line": 28,
1468
+ "character": 3
1469
+ },
1470
+ "signature": "constructor HarmonyWorker<T>(name: string, workerPath: string): HarmonyWorker<T>",
1471
+ "name": "constructor",
1472
+ "params": [
1473
+ {
1474
+ "__schema": "ParameterSchema",
1475
+ "location": {
1476
+ "filePath": "harmony-worker.ts",
1477
+ "line": 28,
1478
+ "character": 15
1479
+ },
1480
+ "name": "name",
1481
+ "type": {
1482
+ "__schema": "KeywordTypeSchema",
1483
+ "location": {
1484
+ "filePath": "harmony-worker.ts",
1485
+ "line": 28,
1486
+ "character": 30
1487
+ },
1488
+ "name": "string"
1489
+ },
1490
+ "isOptional": false,
1491
+ "isSpread": false
1492
+ },
1493
+ {
1494
+ "__schema": "ParameterSchema",
1495
+ "location": {
1496
+ "filePath": "harmony-worker.ts",
1497
+ "line": 28,
1498
+ "character": 38
1499
+ },
1500
+ "name": "workerPath",
1501
+ "type": {
1502
+ "__schema": "KeywordTypeSchema",
1503
+ "location": {
1504
+ "filePath": "harmony-worker.ts",
1505
+ "line": 28,
1506
+ "character": 59
1507
+ },
1508
+ "name": "string"
1509
+ },
1510
+ "isOptional": false,
1511
+ "isSpread": false
1512
+ }
1513
+ ],
1514
+ "returnType": {
1515
+ "__schema": "ThisTypeSchema",
1516
+ "location": {
1517
+ "filePath": "harmony-worker.ts",
1518
+ "line": 27,
1519
+ "character": 1
1520
+ },
1521
+ "name": "HarmonyWorker"
1522
+ },
1523
+ "modifiers": []
1524
+ },
1525
+ {
1526
+ "__schema": "GetAccessorSchema",
1527
+ "location": {
1528
+ "filePath": "harmony-worker.ts",
1529
+ "line": 34,
1530
+ "character": 3
1531
+ },
1532
+ "signature": "(getter) HarmonyWorker<T>.stdout: internal.Readable | undefined",
1533
+ "name": "stdout",
1534
+ "type": {
1535
+ "__schema": "InferenceTypeSchema",
1536
+ "location": {
1537
+ "filePath": "harmony-worker.ts",
1538
+ "line": 34,
1539
+ "character": 3
1540
+ },
1541
+ "type": "internal.Readable | undefined"
1542
+ }
1543
+ },
1544
+ {
1545
+ "__schema": "GetAccessorSchema",
1546
+ "location": {
1547
+ "filePath": "harmony-worker.ts",
1548
+ "line": 38,
1549
+ "character": 3
1550
+ },
1551
+ "signature": "(getter) HarmonyWorker<T>.stderr: internal.Readable | undefined",
1552
+ "name": "stderr",
1553
+ "type": {
1554
+ "__schema": "InferenceTypeSchema",
1555
+ "location": {
1556
+ "filePath": "harmony-worker.ts",
1557
+ "line": 38,
1558
+ "character": 3
1559
+ },
1560
+ "type": "internal.Readable | undefined"
1561
+ }
1562
+ },
1563
+ {
1564
+ "__schema": "GetAccessorSchema",
1565
+ "location": {
1566
+ "filePath": "harmony-worker.ts",
1567
+ "line": 42,
1568
+ "character": 3
1569
+ },
1570
+ "signature": "(getter) HarmonyWorker<T>.stdin: internal.Writable | null | undefined",
1571
+ "name": "stdin",
1572
+ "type": {
1573
+ "__schema": "InferenceTypeSchema",
1574
+ "location": {
1575
+ "filePath": "harmony-worker.ts",
1576
+ "line": 42,
1577
+ "character": 3
1578
+ },
1579
+ "type": "internal.Writable | null | undefined"
1580
+ }
1581
+ },
1582
+ {
1583
+ "__schema": "FunctionLikeSchema",
1584
+ "location": {
1585
+ "filePath": "harmony-worker.ts",
1586
+ "line": 56,
1587
+ "character": 3
1588
+ },
1589
+ "signature": "(method) HarmonyWorker<T>.initiate(options: Partial<InitOptions>): Remote<T>",
1590
+ "name": "initiate",
1591
+ "params": [
1592
+ {
1593
+ "__schema": "ParameterSchema",
1594
+ "location": {
1595
+ "filePath": "harmony-worker.ts",
1596
+ "line": 56,
1597
+ "character": 12
1598
+ },
1599
+ "name": "options",
1600
+ "type": {
1601
+ "__schema": "TypeRefSchema",
1602
+ "location": {
1603
+ "filePath": "harmony-worker.ts",
1604
+ "line": 56,
1605
+ "character": 21
1606
+ },
1607
+ "name": "Partial",
1608
+ "typeArgs": [
1609
+ {
1610
+ "__schema": "TypeRefSchema",
1611
+ "location": {
1612
+ "filePath": "harmony-worker.ts",
1613
+ "line": 56,
1614
+ "character": 29
1615
+ },
1616
+ "name": "InitOptions"
1617
+ }
1618
+ ]
1619
+ },
1620
+ "isOptional": false,
1621
+ "isSpread": false
1622
+ }
1623
+ ],
1624
+ "returnType": {
1625
+ "__schema": "TypeRefSchema",
1626
+ "location": {
1627
+ "filePath": "harmony-worker.ts",
1628
+ "line": 56,
1629
+ "character": 44
1630
+ },
1631
+ "name": "Remote",
1632
+ "typeArgs": [
1633
+ {
1634
+ "__schema": "TypeRefSchema",
1635
+ "location": {
1636
+ "filePath": "harmony-worker.ts",
1637
+ "line": 56,
1638
+ "character": 51
1639
+ },
1640
+ "name": "T"
1641
+ }
1642
+ ]
1643
+ },
1644
+ "modifiers": []
1645
+ },
1646
+ {
1647
+ "__schema": "FunctionLikeSchema",
1648
+ "location": {
1649
+ "filePath": "harmony-worker.ts",
1650
+ "line": 64,
1651
+ "character": 3
1652
+ },
1653
+ "signature": "(method) HarmonyWorker<T>.get(): Remote<T> | undefined",
1654
+ "name": "get",
1655
+ "params": [],
1656
+ "returnType": {
1657
+ "__schema": "InferenceTypeSchema",
1658
+ "location": {
1659
+ "filePath": "harmony-worker.ts",
1660
+ "line": 64,
1661
+ "character": 3
1662
+ },
1663
+ "type": "Remote<T> | undefined"
1664
+ },
1665
+ "modifiers": []
1666
+ },
1667
+ {
1668
+ "__schema": "FunctionLikeSchema",
1669
+ "location": {
1670
+ "filePath": "harmony-worker.ts",
1671
+ "line": 68,
1672
+ "character": 3
1673
+ },
1674
+ "signature": "(method) HarmonyWorker<T>.terminate(): Promise<void>",
1675
+ "name": "terminate",
1676
+ "params": [],
1677
+ "returnType": {
1678
+ "__schema": "InferenceTypeSchema",
1679
+ "location": {
1680
+ "filePath": "harmony-worker.ts",
1681
+ "line": 68,
1682
+ "character": 3
1683
+ },
1684
+ "type": "Promise<void>"
1685
+ },
1686
+ "modifiers": [
1687
+ "async"
1688
+ ]
1689
+ }
1690
+ ],
1691
+ "typeParams": [
1692
+ "T"
1693
+ ],
1694
+ "extendsNodes": [],
1695
+ "implementNodes": []
1696
+ }
1697
+ ],
1698
+ "internals": []
1699
+ }
1700
+ ],
1701
+ "componentId": {
1702
+ "scope": "teambit.harmony",
1703
+ "name": "worker",
1704
+ "version": "0.0.1155"
1705
+ },
1706
+ "taggedModuleExports": []
1707
+ }