@teambit/worker 0.0.1397 → 0.0.1399

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