@teambit/worker 0.0.1166 → 0.0.1167

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,749 +14,785 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "VariableLikeSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "worker.aspect.ts",
20
- "line": 3,
21
- "character": 14
19
+ "filePath": "index.ts",
20
+ "line": 6,
21
+ "character": 10
22
22
  },
23
- "signature": "const WorkerAspect: Aspect",
24
23
  "name": "WorkerAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "VariableLikeSchema",
27
26
  "location": {
28
27
  "filePath": "worker.aspect.ts",
29
28
  "line": 3,
30
29
  "character": 14
31
30
  },
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})"
31
+ "signature": "const WorkerAspect: Aspect",
32
+ "name": "WorkerAspect",
33
+ "type": {
34
+ "__schema": "TypeRefSchema",
35
+ "location": {
36
+ "filePath": "worker.aspect.ts",
37
+ "line": 3,
38
+ "character": 14
39
+ },
40
+ "name": "Aspect",
41
+ "componentId": {
42
+ "scope": "teambit.harmony",
43
+ "name": "harmony",
44
+ "version": "0.4.6"
45
+ }
46
+ },
47
+ "isOptional": false,
48
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/worker',\n})"
49
+ }
41
50
  },
42
51
  {
43
- "__schema": "ClassSchema",
52
+ "__schema": "ExportSchema",
44
53
  "location": {
45
- "filePath": "worker.main.runtime.ts",
46
- "line": 10,
47
- "character": 1
54
+ "filePath": "index.ts",
55
+ "line": 7,
56
+ "character": 15
48
57
  },
49
- "signature": "class WorkerMain",
50
58
  "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",
59
+ "exportNode": {
60
+ "__schema": "ClassSchema",
61
+ "location": {
62
+ "filePath": "worker.main.runtime.ts",
63
+ "line": 10,
64
+ "character": 1
65
+ },
66
+ "signature": "class WorkerMain",
67
+ "name": "WorkerMain",
68
+ "members": [
69
+ {
70
+ "__schema": "ConstructorSchema",
71
+ "location": {
72
+ "filePath": "worker.main.runtime.ts",
73
+ "line": 11,
74
+ "character": 3
75
+ },
76
+ "signature": "constructor WorkerMain(workerSlot: WorkerSlot, workerNameSlot: WorkerNameSlot): WorkerMain",
77
+ "name": "constructor",
78
+ "params": [
79
+ {
80
+ "__schema": "ParameterSchema",
72
81
  "location": {
73
82
  "filePath": "worker.main.runtime.ts",
74
83
  "line": 11,
75
- "character": 35
84
+ "character": 15
76
85
  },
77
- "name": "WorkerSlot",
78
- "internalFilePath": "worker.main.runtime.ts"
79
- },
80
- "isOptional": false,
81
- "isSpread": false
82
- },
83
- {
84
- "__schema": "ParameterSchema",
85
- "location": {
86
- "filePath": "worker.main.runtime.ts",
87
- "line": 11,
88
- "character": 47
86
+ "name": "workerSlot",
87
+ "type": {
88
+ "__schema": "TypeRefSchema",
89
+ "location": {
90
+ "filePath": "worker.main.runtime.ts",
91
+ "line": 11,
92
+ "character": 35
93
+ },
94
+ "name": "WorkerSlot",
95
+ "internalFilePath": "worker.main.runtime.ts"
96
+ },
97
+ "isOptional": false,
98
+ "isSpread": false
89
99
  },
90
- "name": "workerNameSlot",
91
- "type": {
92
- "__schema": "TypeRefSchema",
100
+ {
101
+ "__schema": "ParameterSchema",
93
102
  "location": {
94
103
  "filePath": "worker.main.runtime.ts",
95
104
  "line": 11,
96
- "character": 71
105
+ "character": 47
106
+ },
107
+ "name": "workerNameSlot",
108
+ "type": {
109
+ "__schema": "TypeRefSchema",
110
+ "location": {
111
+ "filePath": "worker.main.runtime.ts",
112
+ "line": 11,
113
+ "character": 71
114
+ },
115
+ "name": "WorkerNameSlot",
116
+ "internalFilePath": "worker.main.runtime.ts"
97
117
  },
98
- "name": "WorkerNameSlot",
99
- "internalFilePath": "worker.main.runtime.ts"
118
+ "isOptional": false,
119
+ "isSpread": false
120
+ }
121
+ ],
122
+ "returnType": {
123
+ "__schema": "ThisTypeSchema",
124
+ "location": {
125
+ "filePath": "worker.main.runtime.ts",
126
+ "line": 10,
127
+ "character": 1
100
128
  },
101
- "isOptional": false,
102
- "isSpread": false
103
- }
104
- ],
105
- "returnType": {
106
- "__schema": "ThisTypeSchema",
107
- "location": {
108
- "filePath": "worker.main.runtime.ts",
109
- "line": 10,
110
- "character": 1
129
+ "name": "WorkerMain"
111
130
  },
112
- "name": "WorkerMain"
113
- },
114
- "modifiers": []
115
- },
116
- {
117
- "__schema": "VariableLikeSchema",
118
- "location": {
119
- "filePath": "worker.main.runtime.ts",
120
- "line": 13,
121
- "character": 3
131
+ "modifiers": []
122
132
  },
123
- "signature": "(property) WorkerMain.runtime: RuntimeDefinition",
124
- "name": "runtime",
125
- "type": {
126
- "__schema": "InferenceTypeSchema",
133
+ {
134
+ "__schema": "VariableLikeSchema",
127
135
  "location": {
128
136
  "filePath": "worker.main.runtime.ts",
129
137
  "line": 13,
130
138
  "character": 3
131
139
  },
132
- "type": "RuntimeDefinition"
133
- },
134
- "isOptional": true,
135
- "defaultValue": "MainRuntime"
136
- },
137
- {
138
- "__schema": "FunctionLikeSchema",
139
- "location": {
140
- "filePath": "worker.main.runtime.ts",
141
- "line": 15,
142
- "character": 3
143
- },
144
- "signature": "(method) WorkerMain.listWorkers(): HarmonyWorker<any>[]",
145
- "name": "listWorkers",
146
- "params": [],
147
- "returnType": {
148
- "__schema": "TypeArraySchema",
149
- "location": {
150
- "filePath": "worker.main.runtime.ts",
151
- "line": 15,
152
- "character": 18
153
- },
140
+ "signature": "(property) WorkerMain.runtime: RuntimeDefinition",
141
+ "name": "runtime",
154
142
  "type": {
155
- "__schema": "TypeRefSchema",
143
+ "__schema": "InferenceTypeSchema",
156
144
  "location": {
157
145
  "filePath": "worker.main.runtime.ts",
158
- "line": 15,
159
- "character": 18
146
+ "line": 13,
147
+ "character": 3
160
148
  },
161
- "name": "HarmonyWorker",
162
- "typeArgs": [
163
- {
164
- "__schema": "KeywordTypeSchema",
165
- "location": {
166
- "filePath": "worker.main.runtime.ts",
167
- "line": 15,
168
- "character": 32
169
- },
170
- "name": "any"
171
- }
172
- ]
173
- }
174
- },
175
- "modifiers": []
176
- },
177
- {
178
- "__schema": "FunctionLikeSchema",
179
- "location": {
180
- "filePath": "worker.main.runtime.ts",
181
- "line": 22,
182
- "character": 3
149
+ "type": "RuntimeDefinition"
150
+ },
151
+ "isOptional": true,
152
+ "defaultValue": "MainRuntime"
183
153
  },
184
- "doc": {
185
- "__schema": "DocSchema",
154
+ {
155
+ "__schema": "FunctionLikeSchema",
186
156
  "location": {
187
157
  "filePath": "worker.main.runtime.ts",
188
- "line": 19,
158
+ "line": 15,
189
159
  "character": 3
190
160
  },
191
- "raw": "/**\n * create a new worker.\n */",
192
- "comment": "create a new worker."
193
- },
194
- "signature": "(method) WorkerMain.declareWorker<T>(name: string, path: string): HarmonyWorker<T>",
195
- "name": "declareWorker",
196
- "params": [
197
- {
198
- "__schema": "ParameterSchema",
161
+ "signature": "(method) WorkerMain.listWorkers(): HarmonyWorker<any>[]",
162
+ "name": "listWorkers",
163
+ "params": [],
164
+ "returnType": {
165
+ "__schema": "TypeArraySchema",
199
166
  "location": {
200
167
  "filePath": "worker.main.runtime.ts",
201
- "line": 22,
202
- "character": 20
168
+ "line": 15,
169
+ "character": 18
203
170
  },
204
- "name": "name",
205
171
  "type": {
206
- "__schema": "KeywordTypeSchema",
172
+ "__schema": "TypeRefSchema",
207
173
  "location": {
208
174
  "filePath": "worker.main.runtime.ts",
209
- "line": 22,
210
- "character": 26
175
+ "line": 15,
176
+ "character": 18
211
177
  },
212
- "name": "string"
213
- },
214
- "isOptional": false,
215
- "isSpread": false
178
+ "name": "HarmonyWorker",
179
+ "typeArgs": [
180
+ {
181
+ "__schema": "KeywordTypeSchema",
182
+ "location": {
183
+ "filePath": "worker.main.runtime.ts",
184
+ "line": 15,
185
+ "character": 32
186
+ },
187
+ "name": "any"
188
+ }
189
+ ]
190
+ }
216
191
  },
217
- {
218
- "__schema": "ParameterSchema",
192
+ "modifiers": []
193
+ },
194
+ {
195
+ "__schema": "FunctionLikeSchema",
196
+ "location": {
197
+ "filePath": "worker.main.runtime.ts",
198
+ "line": 22,
199
+ "character": 3
200
+ },
201
+ "doc": {
202
+ "__schema": "DocSchema",
219
203
  "location": {
220
204
  "filePath": "worker.main.runtime.ts",
221
- "line": 22,
222
- "character": 34
205
+ "line": 19,
206
+ "character": 3
223
207
  },
224
- "name": "path",
225
- "type": {
226
- "__schema": "KeywordTypeSchema",
208
+ "raw": "/**\n * create a new worker.\n */",
209
+ "comment": "create a new worker."
210
+ },
211
+ "signature": "(method) WorkerMain.declareWorker<T>(name: string, path: string): HarmonyWorker<T>",
212
+ "name": "declareWorker",
213
+ "params": [
214
+ {
215
+ "__schema": "ParameterSchema",
227
216
  "location": {
228
217
  "filePath": "worker.main.runtime.ts",
229
218
  "line": 22,
230
- "character": 40
219
+ "character": 20
231
220
  },
232
- "name": "string"
221
+ "name": "name",
222
+ "type": {
223
+ "__schema": "KeywordTypeSchema",
224
+ "location": {
225
+ "filePath": "worker.main.runtime.ts",
226
+ "line": 22,
227
+ "character": 26
228
+ },
229
+ "name": "string"
230
+ },
231
+ "isOptional": false,
232
+ "isSpread": false
233
233
  },
234
- "isOptional": false,
235
- "isSpread": false
236
- }
237
- ],
238
- "returnType": {
239
- "__schema": "TypeRefSchema",
240
- "location": {
241
- "filePath": "worker.main.runtime.ts",
242
- "line": 22,
243
- "character": 49
244
- },
245
- "name": "HarmonyWorker",
246
- "typeArgs": [
247
234
  {
248
- "__schema": "TypeRefSchema",
235
+ "__schema": "ParameterSchema",
249
236
  "location": {
250
237
  "filePath": "worker.main.runtime.ts",
251
238
  "line": 22,
252
- "character": 63
239
+ "character": 34
240
+ },
241
+ "name": "path",
242
+ "type": {
243
+ "__schema": "KeywordTypeSchema",
244
+ "location": {
245
+ "filePath": "worker.main.runtime.ts",
246
+ "line": 22,
247
+ "character": 40
248
+ },
249
+ "name": "string"
253
250
  },
254
- "name": "T"
251
+ "isOptional": false,
252
+ "isSpread": false
255
253
  }
256
- ]
257
- },
258
- "modifiers": [],
259
- "typeParams": [
260
- "T"
261
- ]
262
- },
263
- {
264
- "__schema": "FunctionLikeSchema",
265
- "location": {
266
- "filePath": "worker.main.runtime.ts",
267
- "line": 49,
268
- "character": 3
269
- },
270
- "signature": "(method) WorkerMain.getWorker<T>(id: string): HarmonyWorker<T>",
271
- "name": "getWorker",
272
- "params": [
273
- {
274
- "__schema": "ParameterSchema",
254
+ ],
255
+ "returnType": {
256
+ "__schema": "TypeRefSchema",
275
257
  "location": {
276
258
  "filePath": "worker.main.runtime.ts",
277
- "line": 49,
278
- "character": 16
259
+ "line": 22,
260
+ "character": 49
279
261
  },
280
- "name": "id",
281
- "type": {
282
- "__schema": "KeywordTypeSchema",
283
- "location": {
284
- "filePath": "worker.main.runtime.ts",
285
- "line": 49,
286
- "character": 20
287
- },
288
- "name": "string"
289
- },
290
- "isOptional": false,
291
- "isSpread": false
292
- }
293
- ],
294
- "returnType": {
295
- "__schema": "TypeRefSchema",
262
+ "name": "HarmonyWorker",
263
+ "typeArgs": [
264
+ {
265
+ "__schema": "TypeRefSchema",
266
+ "location": {
267
+ "filePath": "worker.main.runtime.ts",
268
+ "line": 22,
269
+ "character": 63
270
+ },
271
+ "name": "T"
272
+ }
273
+ ]
274
+ },
275
+ "modifiers": [],
276
+ "typeParams": [
277
+ "T"
278
+ ]
279
+ },
280
+ {
281
+ "__schema": "FunctionLikeSchema",
296
282
  "location": {
297
283
  "filePath": "worker.main.runtime.ts",
298
284
  "line": 49,
299
- "character": 29
285
+ "character": 3
300
286
  },
301
- "name": "HarmonyWorker",
302
- "typeArgs": [
287
+ "signature": "(method) WorkerMain.getWorker<T>(id: string): HarmonyWorker<T>",
288
+ "name": "getWorker",
289
+ "params": [
303
290
  {
304
- "__schema": "TypeRefSchema",
291
+ "__schema": "ParameterSchema",
305
292
  "location": {
306
293
  "filePath": "worker.main.runtime.ts",
307
294
  "line": 49,
308
- "character": 43
295
+ "character": 16
309
296
  },
310
- "name": "T"
297
+ "name": "id",
298
+ "type": {
299
+ "__schema": "KeywordTypeSchema",
300
+ "location": {
301
+ "filePath": "worker.main.runtime.ts",
302
+ "line": 49,
303
+ "character": 20
304
+ },
305
+ "name": "string"
306
+ },
307
+ "isOptional": false,
308
+ "isSpread": false
311
309
  }
310
+ ],
311
+ "returnType": {
312
+ "__schema": "TypeRefSchema",
313
+ "location": {
314
+ "filePath": "worker.main.runtime.ts",
315
+ "line": 49,
316
+ "character": 29
317
+ },
318
+ "name": "HarmonyWorker",
319
+ "typeArgs": [
320
+ {
321
+ "__schema": "TypeRefSchema",
322
+ "location": {
323
+ "filePath": "worker.main.runtime.ts",
324
+ "line": 49,
325
+ "character": 43
326
+ },
327
+ "name": "T"
328
+ }
329
+ ]
330
+ },
331
+ "modifiers": [],
332
+ "typeParams": [
333
+ "T"
312
334
  ]
313
335
  },
314
- "modifiers": [],
315
- "typeParams": [
316
- "T"
317
- ]
318
- },
319
- {
320
- "__schema": "VariableLikeSchema",
321
- "location": {
322
- "filePath": "worker.main.runtime.ts",
323
- "line": 53,
324
- "character": 3
325
- },
326
- "signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
327
- "name": "slots",
328
- "type": {
329
- "__schema": "InferenceTypeSchema",
336
+ {
337
+ "__schema": "VariableLikeSchema",
330
338
  "location": {
331
339
  "filePath": "worker.main.runtime.ts",
332
340
  "line": 53,
333
341
  "character": 3
334
342
  },
335
- "type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
336
- },
337
- "isOptional": true,
338
- "defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
339
- },
340
- {
341
- "__schema": "VariableLikeSchema",
342
- "location": {
343
- "filePath": "worker.main.runtime.ts",
344
- "line": 55,
345
- "character": 3
343
+ "signature": "(property) WorkerMain.slots: (((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]",
344
+ "name": "slots",
345
+ "type": {
346
+ "__schema": "InferenceTypeSchema",
347
+ "location": {
348
+ "filePath": "worker.main.runtime.ts",
349
+ "line": 53,
350
+ "character": 3
351
+ },
352
+ "type": "(((registerFn: () => string) => SlotRegistry<HarmonyWorker<unknown>>) | ((registerFn: () => string) => SlotRegistry<string>))[]"
353
+ },
354
+ "isOptional": true,
355
+ "defaultValue": "[Slot.withType<HarmonyWorker<unknown>>(), Slot.withType<string>()]"
346
356
  },
347
- "signature": "(property) WorkerMain.dependencies: never[]",
348
- "name": "dependencies",
349
- "type": {
350
- "__schema": "InferenceTypeSchema",
357
+ {
358
+ "__schema": "VariableLikeSchema",
351
359
  "location": {
352
360
  "filePath": "worker.main.runtime.ts",
353
361
  "line": 55,
354
362
  "character": 3
355
363
  },
356
- "type": "never[]"
357
- },
358
- "isOptional": true,
359
- "defaultValue": "[]"
360
- },
361
- {
362
- "__schema": "FunctionLikeSchema",
363
- "location": {
364
- "filePath": "worker.main.runtime.ts",
365
- "line": 57,
366
- "character": 3
367
- },
368
- "signature": "(method) WorkerMain.provider(_deps: any, _config: any, [workerSlot, workerNameSlot]: [WorkerSlot, WorkerNameSlot]): Promise<WorkerMain>",
369
- "name": "provider",
370
- "params": [
371
- {
372
- "__schema": "ParameterSchema",
364
+ "signature": "(property) WorkerMain.dependencies: never[]",
365
+ "name": "dependencies",
366
+ "type": {
367
+ "__schema": "InferenceTypeSchema",
373
368
  "location": {
374
369
  "filePath": "worker.main.runtime.ts",
375
- "line": 57,
376
- "character": 25
370
+ "line": 55,
371
+ "character": 3
377
372
  },
378
- "name": "_deps",
379
- "type": {
380
- "__schema": "InferenceTypeSchema",
373
+ "type": "never[]"
374
+ },
375
+ "isOptional": true,
376
+ "defaultValue": "[]"
377
+ },
378
+ {
379
+ "__schema": "FunctionLikeSchema",
380
+ "location": {
381
+ "filePath": "worker.main.runtime.ts",
382
+ "line": 57,
383
+ "character": 3
384
+ },
385
+ "signature": "(method) WorkerMain.provider(_deps: any, _config: any, [workerSlot, workerNameSlot]: [WorkerSlot, WorkerNameSlot]): Promise<WorkerMain>",
386
+ "name": "provider",
387
+ "params": [
388
+ {
389
+ "__schema": "ParameterSchema",
381
390
  "location": {
382
391
  "filePath": "worker.main.runtime.ts",
383
392
  "line": 57,
384
393
  "character": 25
385
394
  },
386
- "type": "any"
387
- },
388
- "isOptional": false,
389
- "isSpread": false
390
- },
391
- {
392
- "__schema": "ParameterSchema",
393
- "location": {
394
- "filePath": "worker.main.runtime.ts",
395
- "line": 57,
396
- "character": 32
395
+ "name": "_deps",
396
+ "type": {
397
+ "__schema": "InferenceTypeSchema",
398
+ "location": {
399
+ "filePath": "worker.main.runtime.ts",
400
+ "line": 57,
401
+ "character": 25
402
+ },
403
+ "type": "any"
404
+ },
405
+ "isOptional": false,
406
+ "isSpread": false
397
407
  },
398
- "name": "_config",
399
- "type": {
400
- "__schema": "InferenceTypeSchema",
408
+ {
409
+ "__schema": "ParameterSchema",
401
410
  "location": {
402
411
  "filePath": "worker.main.runtime.ts",
403
412
  "line": 57,
404
413
  "character": 32
405
414
  },
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": 57,
416
- "character": 41
415
+ "name": "_config",
416
+ "type": {
417
+ "__schema": "InferenceTypeSchema",
418
+ "location": {
419
+ "filePath": "worker.main.runtime.ts",
420
+ "line": 57,
421
+ "character": 32
422
+ },
423
+ "type": "any"
424
+ },
425
+ "isOptional": false,
426
+ "isSpread": false
417
427
  },
418
- "name": "[ workerSlot, workerNameSlot ]",
419
- "type": {
420
- "__schema": "TupleTypeSchema",
428
+ {
429
+ "__schema": "ParameterSchema",
421
430
  "location": {
422
431
  "filePath": "worker.main.runtime.ts",
423
432
  "line": 57,
424
- "character": 71
433
+ "character": 41
425
434
  },
426
- "elements": [
427
- {
428
- "__schema": "TypeRefSchema",
429
- "location": {
430
- "filePath": "worker.main.runtime.ts",
431
- "line": 57,
432
- "character": 72
433
- },
434
- "name": "WorkerSlot",
435
- "internalFilePath": "worker.main.runtime.ts"
435
+ "name": "[ workerSlot, workerNameSlot ]",
436
+ "type": {
437
+ "__schema": "TupleTypeSchema",
438
+ "location": {
439
+ "filePath": "worker.main.runtime.ts",
440
+ "line": 57,
441
+ "character": 71
436
442
  },
437
- {
438
- "__schema": "TypeRefSchema",
439
- "location": {
440
- "filePath": "worker.main.runtime.ts",
441
- "line": 57,
442
- "character": 84
443
+ "elements": [
444
+ {
445
+ "__schema": "TypeRefSchema",
446
+ "location": {
447
+ "filePath": "worker.main.runtime.ts",
448
+ "line": 57,
449
+ "character": 72
450
+ },
451
+ "name": "WorkerSlot",
452
+ "internalFilePath": "worker.main.runtime.ts"
443
453
  },
444
- "name": "WorkerNameSlot",
445
- "internalFilePath": "worker.main.runtime.ts"
446
- }
447
- ]
454
+ {
455
+ "__schema": "TypeRefSchema",
456
+ "location": {
457
+ "filePath": "worker.main.runtime.ts",
458
+ "line": 57,
459
+ "character": 84
460
+ },
461
+ "name": "WorkerNameSlot",
462
+ "internalFilePath": "worker.main.runtime.ts"
463
+ }
464
+ ]
465
+ },
466
+ "isOptional": false,
467
+ "isSpread": false
468
+ }
469
+ ],
470
+ "returnType": {
471
+ "__schema": "InferenceTypeSchema",
472
+ "location": {
473
+ "filePath": "worker.main.runtime.ts",
474
+ "line": 57,
475
+ "character": 3
448
476
  },
449
- "isOptional": false,
450
- "isSpread": false
451
- }
452
- ],
453
- "returnType": {
454
- "__schema": "InferenceTypeSchema",
455
- "location": {
456
- "filePath": "worker.main.runtime.ts",
457
- "line": 57,
458
- "character": 3
477
+ "type": "Promise<WorkerMain>"
459
478
  },
460
- "type": "Promise<WorkerMain>"
461
- },
462
- "modifiers": [
463
- "static",
464
- "async"
465
- ]
466
- }
467
- ],
468
- "extendsNodes": [],
469
- "implementNodes": []
479
+ "modifiers": [
480
+ "static",
481
+ "async"
482
+ ]
483
+ }
484
+ ],
485
+ "extendsNodes": [],
486
+ "implementNodes": []
487
+ }
470
488
  },
471
489
  {
472
- "__schema": "ClassSchema",
490
+ "__schema": "ExportSchema",
473
491
  "location": {
474
- "filePath": "harmony-worker.ts",
475
- "line": 27,
476
- "character": 1
492
+ "filePath": "index.ts",
493
+ "line": 8,
494
+ "character": 15
477
495
  },
478
- "signature": "class HarmonyWorker<T>",
479
496
  "name": "HarmonyWorker",
480
- "members": [
481
- {
482
- "__schema": "ConstructorSchema",
483
- "location": {
484
- "filePath": "harmony-worker.ts",
485
- "line": 28,
486
- "character": 3
487
- },
488
- "signature": "constructor HarmonyWorker<T>(name: string, workerPath: string): HarmonyWorker<T>",
489
- "name": "constructor",
490
- "params": [
491
- {
492
- "__schema": "ParameterSchema",
493
- "location": {
494
- "filePath": "harmony-worker.ts",
495
- "line": 28,
496
- "character": 15
497
- },
498
- "name": "name",
499
- "type": {
500
- "__schema": "KeywordTypeSchema",
497
+ "exportNode": {
498
+ "__schema": "ClassSchema",
499
+ "location": {
500
+ "filePath": "harmony-worker.ts",
501
+ "line": 27,
502
+ "character": 1
503
+ },
504
+ "signature": "class HarmonyWorker<T>",
505
+ "name": "HarmonyWorker",
506
+ "members": [
507
+ {
508
+ "__schema": "ConstructorSchema",
509
+ "location": {
510
+ "filePath": "harmony-worker.ts",
511
+ "line": 28,
512
+ "character": 3
513
+ },
514
+ "signature": "constructor HarmonyWorker<T>(name: string, workerPath: string): HarmonyWorker<T>",
515
+ "name": "constructor",
516
+ "params": [
517
+ {
518
+ "__schema": "ParameterSchema",
501
519
  "location": {
502
520
  "filePath": "harmony-worker.ts",
503
521
  "line": 28,
504
- "character": 30
522
+ "character": 15
505
523
  },
506
- "name": "string"
507
- },
508
- "isOptional": false,
509
- "isSpread": false
510
- },
511
- {
512
- "__schema": "ParameterSchema",
513
- "location": {
514
- "filePath": "harmony-worker.ts",
515
- "line": 28,
516
- "character": 38
524
+ "name": "name",
525
+ "type": {
526
+ "__schema": "KeywordTypeSchema",
527
+ "location": {
528
+ "filePath": "harmony-worker.ts",
529
+ "line": 28,
530
+ "character": 30
531
+ },
532
+ "name": "string"
533
+ },
534
+ "isOptional": false,
535
+ "isSpread": false
517
536
  },
518
- "name": "workerPath",
519
- "type": {
520
- "__schema": "KeywordTypeSchema",
537
+ {
538
+ "__schema": "ParameterSchema",
521
539
  "location": {
522
540
  "filePath": "harmony-worker.ts",
523
541
  "line": 28,
524
- "character": 59
542
+ "character": 38
543
+ },
544
+ "name": "workerPath",
545
+ "type": {
546
+ "__schema": "KeywordTypeSchema",
547
+ "location": {
548
+ "filePath": "harmony-worker.ts",
549
+ "line": 28,
550
+ "character": 59
551
+ },
552
+ "name": "string"
525
553
  },
526
- "name": "string"
554
+ "isOptional": false,
555
+ "isSpread": false
556
+ }
557
+ ],
558
+ "returnType": {
559
+ "__schema": "ThisTypeSchema",
560
+ "location": {
561
+ "filePath": "harmony-worker.ts",
562
+ "line": 27,
563
+ "character": 1
527
564
  },
528
- "isOptional": false,
529
- "isSpread": false
530
- }
531
- ],
532
- "returnType": {
533
- "__schema": "ThisTypeSchema",
534
- "location": {
535
- "filePath": "harmony-worker.ts",
536
- "line": 27,
537
- "character": 1
565
+ "name": "HarmonyWorker"
538
566
  },
539
- "name": "HarmonyWorker"
540
- },
541
- "modifiers": []
542
- },
543
- {
544
- "__schema": "GetAccessorSchema",
545
- "location": {
546
- "filePath": "harmony-worker.ts",
547
- "line": 34,
548
- "character": 3
567
+ "modifiers": []
549
568
  },
550
- "signature": "(getter) HarmonyWorker<T>.stdout: internal.Readable | undefined",
551
- "name": "stdout",
552
- "type": {
553
- "__schema": "InferenceTypeSchema",
569
+ {
570
+ "__schema": "GetAccessorSchema",
554
571
  "location": {
555
572
  "filePath": "harmony-worker.ts",
556
573
  "line": 34,
557
574
  "character": 3
558
575
  },
559
- "type": "internal.Readable | undefined"
560
- }
561
- },
562
- {
563
- "__schema": "GetAccessorSchema",
564
- "location": {
565
- "filePath": "harmony-worker.ts",
566
- "line": 38,
567
- "character": 3
576
+ "signature": "(getter) HarmonyWorker<T>.stdout: internal.Readable | undefined",
577
+ "name": "stdout",
578
+ "type": {
579
+ "__schema": "InferenceTypeSchema",
580
+ "location": {
581
+ "filePath": "harmony-worker.ts",
582
+ "line": 34,
583
+ "character": 3
584
+ },
585
+ "type": "internal.Readable | undefined"
586
+ }
568
587
  },
569
- "signature": "(getter) HarmonyWorker<T>.stderr: internal.Readable | undefined",
570
- "name": "stderr",
571
- "type": {
572
- "__schema": "InferenceTypeSchema",
588
+ {
589
+ "__schema": "GetAccessorSchema",
573
590
  "location": {
574
591
  "filePath": "harmony-worker.ts",
575
592
  "line": 38,
576
593
  "character": 3
577
594
  },
578
- "type": "internal.Readable | undefined"
579
- }
580
- },
581
- {
582
- "__schema": "GetAccessorSchema",
583
- "location": {
584
- "filePath": "harmony-worker.ts",
585
- "line": 42,
586
- "character": 3
595
+ "signature": "(getter) HarmonyWorker<T>.stderr: internal.Readable | undefined",
596
+ "name": "stderr",
597
+ "type": {
598
+ "__schema": "InferenceTypeSchema",
599
+ "location": {
600
+ "filePath": "harmony-worker.ts",
601
+ "line": 38,
602
+ "character": 3
603
+ },
604
+ "type": "internal.Readable | undefined"
605
+ }
587
606
  },
588
- "signature": "(getter) HarmonyWorker<T>.stdin: internal.Writable | null | undefined",
589
- "name": "stdin",
590
- "type": {
591
- "__schema": "InferenceTypeSchema",
607
+ {
608
+ "__schema": "GetAccessorSchema",
592
609
  "location": {
593
610
  "filePath": "harmony-worker.ts",
594
611
  "line": 42,
595
612
  "character": 3
596
613
  },
597
- "type": "internal.Writable | null | undefined"
598
- }
599
- },
600
- {
601
- "__schema": "FunctionLikeSchema",
602
- "location": {
603
- "filePath": "harmony-worker.ts",
604
- "line": 56,
605
- "character": 3
606
- },
607
- "signature": "(method) HarmonyWorker<T>.initiate(options: Partial<InitOptions>): Remote<T>",
608
- "name": "initiate",
609
- "params": [
610
- {
611
- "__schema": "ParameterSchema",
614
+ "signature": "(getter) HarmonyWorker<T>.stdin: internal.Writable | null | undefined",
615
+ "name": "stdin",
616
+ "type": {
617
+ "__schema": "InferenceTypeSchema",
612
618
  "location": {
613
619
  "filePath": "harmony-worker.ts",
614
- "line": 56,
615
- "character": 12
616
- },
617
- "name": "options",
618
- "type": {
619
- "__schema": "TypeRefSchema",
620
- "location": {
621
- "filePath": "harmony-worker.ts",
622
- "line": 56,
623
- "character": 21
624
- },
625
- "name": "Partial",
626
- "typeArgs": [
627
- {
628
- "__schema": "TypeRefSchema",
629
- "location": {
630
- "filePath": "harmony-worker.ts",
631
- "line": 56,
632
- "character": 29
633
- },
634
- "name": "InitOptions",
635
- "internalFilePath": "harmony-worker.ts"
636
- }
637
- ]
620
+ "line": 42,
621
+ "character": 3
638
622
  },
639
- "isOptional": false,
640
- "isSpread": false
623
+ "type": "internal.Writable | null | undefined"
641
624
  }
642
- ],
643
- "returnType": {
644
- "__schema": "TypeRefSchema",
625
+ },
626
+ {
627
+ "__schema": "FunctionLikeSchema",
645
628
  "location": {
646
629
  "filePath": "harmony-worker.ts",
647
630
  "line": 56,
648
- "character": 44
631
+ "character": 3
649
632
  },
650
- "name": "Remote",
651
- "packageName": "comlink",
652
- "typeArgs": [
633
+ "signature": "(method) HarmonyWorker<T>.initiate(options: Partial<InitOptions>): Remote<T>",
634
+ "name": "initiate",
635
+ "params": [
653
636
  {
654
- "__schema": "TypeRefSchema",
637
+ "__schema": "ParameterSchema",
655
638
  "location": {
656
639
  "filePath": "harmony-worker.ts",
657
640
  "line": 56,
658
- "character": 51
641
+ "character": 12
642
+ },
643
+ "name": "options",
644
+ "type": {
645
+ "__schema": "TypeRefSchema",
646
+ "location": {
647
+ "filePath": "harmony-worker.ts",
648
+ "line": 56,
649
+ "character": 21
650
+ },
651
+ "name": "Partial",
652
+ "typeArgs": [
653
+ {
654
+ "__schema": "TypeRefSchema",
655
+ "location": {
656
+ "filePath": "harmony-worker.ts",
657
+ "line": 56,
658
+ "character": 29
659
+ },
660
+ "name": "InitOptions",
661
+ "internalFilePath": "harmony-worker.ts"
662
+ }
663
+ ]
659
664
  },
660
- "name": "T"
665
+ "isOptional": false,
666
+ "isSpread": false
661
667
  }
662
- ]
663
- },
664
- "modifiers": []
665
- },
666
- {
667
- "__schema": "FunctionLikeSchema",
668
- "location": {
669
- "filePath": "harmony-worker.ts",
670
- "line": 64,
671
- "character": 3
668
+ ],
669
+ "returnType": {
670
+ "__schema": "TypeRefSchema",
671
+ "location": {
672
+ "filePath": "harmony-worker.ts",
673
+ "line": 56,
674
+ "character": 44
675
+ },
676
+ "name": "Remote",
677
+ "packageName": "comlink",
678
+ "typeArgs": [
679
+ {
680
+ "__schema": "TypeRefSchema",
681
+ "location": {
682
+ "filePath": "harmony-worker.ts",
683
+ "line": 56,
684
+ "character": 51
685
+ },
686
+ "name": "T"
687
+ }
688
+ ]
689
+ },
690
+ "modifiers": []
672
691
  },
673
- "signature": "(method) HarmonyWorker<T>.get(): Remote<T> | undefined",
674
- "name": "get",
675
- "params": [],
676
- "returnType": {
677
- "__schema": "InferenceTypeSchema",
692
+ {
693
+ "__schema": "FunctionLikeSchema",
678
694
  "location": {
679
695
  "filePath": "harmony-worker.ts",
680
696
  "line": 64,
681
697
  "character": 3
682
698
  },
683
- "type": "Remote<T> | undefined"
684
- },
685
- "modifiers": []
686
- },
687
- {
688
- "__schema": "FunctionLikeSchema",
689
- "location": {
690
- "filePath": "harmony-worker.ts",
691
- "line": 68,
692
- "character": 3
699
+ "signature": "(method) HarmonyWorker<T>.get(): Remote<T> | undefined",
700
+ "name": "get",
701
+ "params": [],
702
+ "returnType": {
703
+ "__schema": "InferenceTypeSchema",
704
+ "location": {
705
+ "filePath": "harmony-worker.ts",
706
+ "line": 64,
707
+ "character": 3
708
+ },
709
+ "type": "Remote<T> | undefined"
710
+ },
711
+ "modifiers": []
693
712
  },
694
- "signature": "(method) HarmonyWorker<T>.terminate(): Promise<void>",
695
- "name": "terminate",
696
- "params": [],
697
- "returnType": {
698
- "__schema": "InferenceTypeSchema",
713
+ {
714
+ "__schema": "FunctionLikeSchema",
699
715
  "location": {
700
716
  "filePath": "harmony-worker.ts",
701
717
  "line": 68,
702
718
  "character": 3
703
719
  },
704
- "type": "Promise<void>"
705
- },
706
- "modifiers": [
707
- "async"
708
- ]
709
- }
710
- ],
711
- "typeParams": [
712
- "T"
713
- ],
714
- "extendsNodes": [],
715
- "implementNodes": []
720
+ "signature": "(method) HarmonyWorker<T>.terminate(): Promise<void>",
721
+ "name": "terminate",
722
+ "params": [],
723
+ "returnType": {
724
+ "__schema": "InferenceTypeSchema",
725
+ "location": {
726
+ "filePath": "harmony-worker.ts",
727
+ "line": 68,
728
+ "character": 3
729
+ },
730
+ "type": "Promise<void>"
731
+ },
732
+ "modifiers": [
733
+ "async"
734
+ ]
735
+ }
736
+ ],
737
+ "typeParams": [
738
+ "T"
739
+ ],
740
+ "extendsNodes": [],
741
+ "implementNodes": []
742
+ }
716
743
  },
717
744
  {
718
- "__schema": "FunctionLikeSchema",
745
+ "__schema": "ExportSchema",
719
746
  "location": {
720
- "filePath": "expose.ts",
721
- "line": 25,
722
- "character": 1
747
+ "filePath": "index.ts",
748
+ "line": 9,
749
+ "character": 10
723
750
  },
724
- "signature": "function expose(object: any): void",
725
751
  "name": "expose",
726
- "params": [
727
- {
728
- "__schema": "ParameterSchema",
729
- "location": {
730
- "filePath": "expose.ts",
731
- "line": 25,
732
- "character": 24
733
- },
734
- "name": "object",
735
- "type": {
736
- "__schema": "KeywordTypeSchema",
752
+ "exportNode": {
753
+ "__schema": "FunctionLikeSchema",
754
+ "location": {
755
+ "filePath": "expose.ts",
756
+ "line": 25,
757
+ "character": 1
758
+ },
759
+ "signature": "function expose(object: any): void",
760
+ "name": "expose",
761
+ "params": [
762
+ {
763
+ "__schema": "ParameterSchema",
737
764
  "location": {
738
765
  "filePath": "expose.ts",
739
766
  "line": 25,
740
- "character": 32
767
+ "character": 24
768
+ },
769
+ "name": "object",
770
+ "type": {
771
+ "__schema": "KeywordTypeSchema",
772
+ "location": {
773
+ "filePath": "expose.ts",
774
+ "line": 25,
775
+ "character": 32
776
+ },
777
+ "name": "any"
741
778
  },
742
- "name": "any"
779
+ "isOptional": false,
780
+ "isSpread": false
781
+ }
782
+ ],
783
+ "returnType": {
784
+ "__schema": "InferenceTypeSchema",
785
+ "location": {
786
+ "filePath": "expose.ts",
787
+ "line": 25,
788
+ "character": 1
743
789
  },
744
- "isOptional": false,
745
- "isSpread": false
746
- }
747
- ],
748
- "returnType": {
749
- "__schema": "InferenceTypeSchema",
750
- "location": {
751
- "filePath": "expose.ts",
752
- "line": 25,
753
- "character": 1
790
+ "type": "void"
754
791
  },
755
- "type": "void"
756
- },
757
- "modifiers": [
758
- "export"
759
- ]
792
+ "modifiers": [
793
+ "export"
794
+ ]
795
+ }
760
796
  },
761
797
  {
762
798
  "__schema": "UnImplementedSchema",
@@ -1723,7 +1759,7 @@
1723
1759
  "componentId": {
1724
1760
  "scope": "teambit.harmony",
1725
1761
  "name": "worker",
1726
- "version": "0.0.1166"
1762
+ "version": "0.0.1167"
1727
1763
  },
1728
1764
  "taggedModuleExports": []
1729
1765
  }