@teambit/worker 0.0.1165 → 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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_harmony_worker-preview.js +1 -1
- package/artifacts/schema.json +622 -564
- package/dist/expose.d.ts +2 -0
- package/dist/harmony-worker.d.ts +34 -0
- package/dist/index.d.ts +6 -0
- package/dist/node-endpoint.d.ts +7 -0
- package/dist/{preview-1712805335812.js → preview-1714533890836.js} +2 -2
- package/dist/worker-manifest.d.ts +6 -0
- package/dist/worker.aspect.d.ts +2 -0
- package/dist/worker.composition.d.ts +1 -0
- package/dist/worker.main.runtime.d.ts +19 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -7
package/artifacts/schema.json
CHANGED
|
@@ -14,743 +14,785 @@
|
|
|
14
14
|
},
|
|
15
15
|
"exports": [
|
|
16
16
|
{
|
|
17
|
-
"__schema": "
|
|
17
|
+
"__schema": "ExportSchema",
|
|
18
18
|
"location": {
|
|
19
|
-
"filePath": "
|
|
20
|
-
"line":
|
|
21
|
-
"character":
|
|
19
|
+
"filePath": "index.ts",
|
|
20
|
+
"line": 6,
|
|
21
|
+
"character": 10
|
|
22
22
|
},
|
|
23
|
-
"signature": "const WorkerAspect: Aspect",
|
|
24
23
|
"name": "WorkerAspect",
|
|
25
|
-
"
|
|
26
|
-
"__schema": "
|
|
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
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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": "
|
|
52
|
+
"__schema": "ExportSchema",
|
|
44
53
|
"location": {
|
|
45
|
-
"filePath": "
|
|
46
|
-
"line":
|
|
47
|
-
"character":
|
|
54
|
+
"filePath": "index.ts",
|
|
55
|
+
"line": 7,
|
|
56
|
+
"character": 15
|
|
48
57
|
},
|
|
49
|
-
"signature": "class WorkerMain",
|
|
50
58
|
"name": "WorkerMain",
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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":
|
|
84
|
+
"character": 15
|
|
76
85
|
},
|
|
77
|
-
"name": "
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
88
99
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"__schema": "TypeRefSchema",
|
|
100
|
+
{
|
|
101
|
+
"__schema": "ParameterSchema",
|
|
92
102
|
"location": {
|
|
93
103
|
"filePath": "worker.main.runtime.ts",
|
|
94
104
|
"line": 11,
|
|
95
|
-
"character":
|
|
105
|
+
"character": 47
|
|
96
106
|
},
|
|
97
|
-
"name": "
|
|
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"
|
|
117
|
+
},
|
|
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
|
|
98
128
|
},
|
|
99
|
-
"
|
|
100
|
-
"isSpread": false
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"returnType": {
|
|
104
|
-
"__schema": "ThisTypeSchema",
|
|
105
|
-
"location": {
|
|
106
|
-
"filePath": "worker.main.runtime.ts",
|
|
107
|
-
"line": 10,
|
|
108
|
-
"character": 1
|
|
129
|
+
"name": "WorkerMain"
|
|
109
130
|
},
|
|
110
|
-
"
|
|
111
|
-
},
|
|
112
|
-
"modifiers": []
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"__schema": "VariableLikeSchema",
|
|
116
|
-
"location": {
|
|
117
|
-
"filePath": "worker.main.runtime.ts",
|
|
118
|
-
"line": 13,
|
|
119
|
-
"character": 3
|
|
131
|
+
"modifiers": []
|
|
120
132
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"type": {
|
|
124
|
-
"__schema": "InferenceTypeSchema",
|
|
133
|
+
{
|
|
134
|
+
"__schema": "VariableLikeSchema",
|
|
125
135
|
"location": {
|
|
126
136
|
"filePath": "worker.main.runtime.ts",
|
|
127
137
|
"line": 13,
|
|
128
138
|
"character": 3
|
|
129
139
|
},
|
|
130
|
-
"
|
|
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
|
-
},
|
|
140
|
+
"signature": "(property) WorkerMain.runtime: RuntimeDefinition",
|
|
141
|
+
"name": "runtime",
|
|
152
142
|
"type": {
|
|
153
|
-
"__schema": "
|
|
143
|
+
"__schema": "InferenceTypeSchema",
|
|
154
144
|
"location": {
|
|
155
145
|
"filePath": "worker.main.runtime.ts",
|
|
156
|
-
"line":
|
|
157
|
-
"character":
|
|
146
|
+
"line": 13,
|
|
147
|
+
"character": 3
|
|
158
148
|
},
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
|
149
|
+
"type": "RuntimeDefinition"
|
|
150
|
+
},
|
|
151
|
+
"isOptional": true,
|
|
152
|
+
"defaultValue": "MainRuntime"
|
|
181
153
|
},
|
|
182
|
-
|
|
183
|
-
"__schema": "
|
|
154
|
+
{
|
|
155
|
+
"__schema": "FunctionLikeSchema",
|
|
184
156
|
"location": {
|
|
185
157
|
"filePath": "worker.main.runtime.ts",
|
|
186
|
-
"line":
|
|
158
|
+
"line": 15,
|
|
187
159
|
"character": 3
|
|
188
160
|
},
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"params": [
|
|
195
|
-
{
|
|
196
|
-
"__schema": "ParameterSchema",
|
|
161
|
+
"signature": "(method) WorkerMain.listWorkers(): HarmonyWorker<any>[]",
|
|
162
|
+
"name": "listWorkers",
|
|
163
|
+
"params": [],
|
|
164
|
+
"returnType": {
|
|
165
|
+
"__schema": "TypeArraySchema",
|
|
197
166
|
"location": {
|
|
198
167
|
"filePath": "worker.main.runtime.ts",
|
|
199
|
-
"line":
|
|
200
|
-
"character":
|
|
168
|
+
"line": 15,
|
|
169
|
+
"character": 18
|
|
201
170
|
},
|
|
202
|
-
"name": "name",
|
|
203
171
|
"type": {
|
|
204
|
-
"__schema": "
|
|
172
|
+
"__schema": "TypeRefSchema",
|
|
205
173
|
"location": {
|
|
206
174
|
"filePath": "worker.main.runtime.ts",
|
|
207
|
-
"line":
|
|
208
|
-
"character":
|
|
175
|
+
"line": 15,
|
|
176
|
+
"character": 18
|
|
209
177
|
},
|
|
210
|
-
"name": "
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
+
}
|
|
214
191
|
},
|
|
215
|
-
|
|
216
|
-
|
|
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",
|
|
217
203
|
"location": {
|
|
218
204
|
"filePath": "worker.main.runtime.ts",
|
|
219
|
-
"line":
|
|
220
|
-
"character":
|
|
205
|
+
"line": 19,
|
|
206
|
+
"character": 3
|
|
221
207
|
},
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
|
|
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",
|
|
225
216
|
"location": {
|
|
226
217
|
"filePath": "worker.main.runtime.ts",
|
|
227
218
|
"line": 22,
|
|
228
|
-
"character":
|
|
219
|
+
"character": 20
|
|
220
|
+
},
|
|
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"
|
|
229
230
|
},
|
|
230
|
-
"
|
|
231
|
+
"isOptional": false,
|
|
232
|
+
"isSpread": false
|
|
231
233
|
},
|
|
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
234
|
{
|
|
246
|
-
"__schema": "
|
|
235
|
+
"__schema": "ParameterSchema",
|
|
247
236
|
"location": {
|
|
248
237
|
"filePath": "worker.main.runtime.ts",
|
|
249
238
|
"line": 22,
|
|
250
|
-
"character":
|
|
239
|
+
"character": 34
|
|
251
240
|
},
|
|
252
|
-
"name": "
|
|
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"
|
|
250
|
+
},
|
|
251
|
+
"isOptional": false,
|
|
252
|
+
"isSpread": false
|
|
253
253
|
}
|
|
254
|
-
]
|
|
255
|
-
|
|
256
|
-
|
|
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",
|
|
254
|
+
],
|
|
255
|
+
"returnType": {
|
|
256
|
+
"__schema": "TypeRefSchema",
|
|
273
257
|
"location": {
|
|
274
258
|
"filePath": "worker.main.runtime.ts",
|
|
275
|
-
"line":
|
|
276
|
-
"character":
|
|
259
|
+
"line": 22,
|
|
260
|
+
"character": 49
|
|
277
261
|
},
|
|
278
|
-
"name": "
|
|
279
|
-
"
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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",
|
|
294
282
|
"location": {
|
|
295
283
|
"filePath": "worker.main.runtime.ts",
|
|
296
284
|
"line": 49,
|
|
297
|
-
"character":
|
|
285
|
+
"character": 3
|
|
298
286
|
},
|
|
299
|
-
"
|
|
300
|
-
"
|
|
287
|
+
"signature": "(method) WorkerMain.getWorker<T>(id: string): HarmonyWorker<T>",
|
|
288
|
+
"name": "getWorker",
|
|
289
|
+
"params": [
|
|
301
290
|
{
|
|
302
|
-
"__schema": "
|
|
291
|
+
"__schema": "ParameterSchema",
|
|
303
292
|
"location": {
|
|
304
293
|
"filePath": "worker.main.runtime.ts",
|
|
305
294
|
"line": 49,
|
|
306
|
-
"character":
|
|
295
|
+
"character": 16
|
|
296
|
+
},
|
|
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"
|
|
307
306
|
},
|
|
308
|
-
"
|
|
307
|
+
"isOptional": false,
|
|
308
|
+
"isSpread": false
|
|
309
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"
|
|
310
334
|
]
|
|
311
335
|
},
|
|
312
|
-
|
|
313
|
-
|
|
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",
|
|
336
|
+
{
|
|
337
|
+
"__schema": "VariableLikeSchema",
|
|
328
338
|
"location": {
|
|
329
339
|
"filePath": "worker.main.runtime.ts",
|
|
330
340
|
"line": 53,
|
|
331
341
|
"character": 3
|
|
332
342
|
},
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
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>()]"
|
|
344
356
|
},
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
"type": {
|
|
348
|
-
"__schema": "InferenceTypeSchema",
|
|
357
|
+
{
|
|
358
|
+
"__schema": "VariableLikeSchema",
|
|
349
359
|
"location": {
|
|
350
360
|
"filePath": "worker.main.runtime.ts",
|
|
351
361
|
"line": 55,
|
|
352
362
|
"character": 3
|
|
353
363
|
},
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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",
|
|
364
|
+
"signature": "(property) WorkerMain.dependencies: never[]",
|
|
365
|
+
"name": "dependencies",
|
|
366
|
+
"type": {
|
|
367
|
+
"__schema": "InferenceTypeSchema",
|
|
371
368
|
"location": {
|
|
372
369
|
"filePath": "worker.main.runtime.ts",
|
|
373
|
-
"line":
|
|
374
|
-
"character":
|
|
370
|
+
"line": 55,
|
|
371
|
+
"character": 3
|
|
375
372
|
},
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
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",
|
|
379
390
|
"location": {
|
|
380
391
|
"filePath": "worker.main.runtime.ts",
|
|
381
392
|
"line": 57,
|
|
382
393
|
"character": 25
|
|
383
394
|
},
|
|
384
|
-
"
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
"
|
|
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
|
|
395
407
|
},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"__schema": "InferenceTypeSchema",
|
|
408
|
+
{
|
|
409
|
+
"__schema": "ParameterSchema",
|
|
399
410
|
"location": {
|
|
400
411
|
"filePath": "worker.main.runtime.ts",
|
|
401
412
|
"line": 57,
|
|
402
413
|
"character": 32
|
|
403
414
|
},
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
"
|
|
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
|
|
415
427
|
},
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
"__schema": "TupleTypeSchema",
|
|
428
|
+
{
|
|
429
|
+
"__schema": "ParameterSchema",
|
|
419
430
|
"location": {
|
|
420
431
|
"filePath": "worker.main.runtime.ts",
|
|
421
432
|
"line": 57,
|
|
422
|
-
"character":
|
|
433
|
+
"character": 41
|
|
423
434
|
},
|
|
424
|
-
"
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
},
|
|
432
|
-
"name": "WorkerSlot"
|
|
435
|
+
"name": "[ workerSlot, workerNameSlot ]",
|
|
436
|
+
"type": {
|
|
437
|
+
"__schema": "TupleTypeSchema",
|
|
438
|
+
"location": {
|
|
439
|
+
"filePath": "worker.main.runtime.ts",
|
|
440
|
+
"line": 57,
|
|
441
|
+
"character": 71
|
|
433
442
|
},
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
|
|
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"
|
|
440
453
|
},
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
|
444
476
|
},
|
|
445
|
-
"
|
|
446
|
-
"isSpread": false
|
|
447
|
-
}
|
|
448
|
-
],
|
|
449
|
-
"returnType": {
|
|
450
|
-
"__schema": "InferenceTypeSchema",
|
|
451
|
-
"location": {
|
|
452
|
-
"filePath": "worker.main.runtime.ts",
|
|
453
|
-
"line": 57,
|
|
454
|
-
"character": 3
|
|
477
|
+
"type": "Promise<WorkerMain>"
|
|
455
478
|
},
|
|
456
|
-
"
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
"implementNodes": []
|
|
479
|
+
"modifiers": [
|
|
480
|
+
"static",
|
|
481
|
+
"async"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"extendsNodes": [],
|
|
486
|
+
"implementNodes": []
|
|
487
|
+
}
|
|
466
488
|
},
|
|
467
489
|
{
|
|
468
|
-
"__schema": "
|
|
490
|
+
"__schema": "ExportSchema",
|
|
469
491
|
"location": {
|
|
470
|
-
"filePath": "
|
|
471
|
-
"line":
|
|
472
|
-
"character":
|
|
492
|
+
"filePath": "index.ts",
|
|
493
|
+
"line": 8,
|
|
494
|
+
"character": 15
|
|
473
495
|
},
|
|
474
|
-
"signature": "class HarmonyWorker<T>",
|
|
475
496
|
"name": "HarmonyWorker",
|
|
476
|
-
"
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
"
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
"
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
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",
|
|
519
|
+
"location": {
|
|
520
|
+
"filePath": "harmony-worker.ts",
|
|
521
|
+
"line": 28,
|
|
522
|
+
"character": 15
|
|
523
|
+
},
|
|
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
|
|
493
536
|
},
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
"__schema": "KeywordTypeSchema",
|
|
537
|
+
{
|
|
538
|
+
"__schema": "ParameterSchema",
|
|
497
539
|
"location": {
|
|
498
540
|
"filePath": "harmony-worker.ts",
|
|
499
541
|
"line": 28,
|
|
500
|
-
"character":
|
|
542
|
+
"character": 38
|
|
501
543
|
},
|
|
502
|
-
"name": "
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
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"
|
|
553
|
+
},
|
|
554
|
+
"isOptional": false,
|
|
555
|
+
"isSpread": false
|
|
556
|
+
}
|
|
557
|
+
],
|
|
558
|
+
"returnType": {
|
|
559
|
+
"__schema": "ThisTypeSchema",
|
|
509
560
|
"location": {
|
|
510
561
|
"filePath": "harmony-worker.ts",
|
|
511
|
-
"line":
|
|
512
|
-
"character":
|
|
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"
|
|
562
|
+
"line": 27,
|
|
563
|
+
"character": 1
|
|
523
564
|
},
|
|
524
|
-
"
|
|
525
|
-
"isSpread": false
|
|
526
|
-
}
|
|
527
|
-
],
|
|
528
|
-
"returnType": {
|
|
529
|
-
"__schema": "ThisTypeSchema",
|
|
530
|
-
"location": {
|
|
531
|
-
"filePath": "harmony-worker.ts",
|
|
532
|
-
"line": 27,
|
|
533
|
-
"character": 1
|
|
565
|
+
"name": "HarmonyWorker"
|
|
534
566
|
},
|
|
535
|
-
"
|
|
536
|
-
},
|
|
537
|
-
"modifiers": []
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"__schema": "GetAccessorSchema",
|
|
541
|
-
"location": {
|
|
542
|
-
"filePath": "harmony-worker.ts",
|
|
543
|
-
"line": 34,
|
|
544
|
-
"character": 3
|
|
567
|
+
"modifiers": []
|
|
545
568
|
},
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
"type": {
|
|
549
|
-
"__schema": "InferenceTypeSchema",
|
|
569
|
+
{
|
|
570
|
+
"__schema": "GetAccessorSchema",
|
|
550
571
|
"location": {
|
|
551
572
|
"filePath": "harmony-worker.ts",
|
|
552
573
|
"line": 34,
|
|
553
574
|
"character": 3
|
|
554
575
|
},
|
|
555
|
-
"
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
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
|
+
}
|
|
564
587
|
},
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
"type": {
|
|
568
|
-
"__schema": "InferenceTypeSchema",
|
|
588
|
+
{
|
|
589
|
+
"__schema": "GetAccessorSchema",
|
|
569
590
|
"location": {
|
|
570
591
|
"filePath": "harmony-worker.ts",
|
|
571
592
|
"line": 38,
|
|
572
593
|
"character": 3
|
|
573
594
|
},
|
|
574
|
-
"
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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
|
+
}
|
|
583
606
|
},
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
"type": {
|
|
587
|
-
"__schema": "InferenceTypeSchema",
|
|
607
|
+
{
|
|
608
|
+
"__schema": "GetAccessorSchema",
|
|
588
609
|
"location": {
|
|
589
610
|
"filePath": "harmony-worker.ts",
|
|
590
611
|
"line": 42,
|
|
591
612
|
"character": 3
|
|
592
613
|
},
|
|
593
|
-
"
|
|
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",
|
|
614
|
+
"signature": "(getter) HarmonyWorker<T>.stdin: internal.Writable | null | undefined",
|
|
615
|
+
"name": "stdin",
|
|
616
|
+
"type": {
|
|
617
|
+
"__schema": "InferenceTypeSchema",
|
|
608
618
|
"location": {
|
|
609
619
|
"filePath": "harmony-worker.ts",
|
|
610
|
-
"line":
|
|
611
|
-
"character":
|
|
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
|
-
]
|
|
620
|
+
"line": 42,
|
|
621
|
+
"character": 3
|
|
633
622
|
},
|
|
634
|
-
"
|
|
635
|
-
"isSpread": false
|
|
623
|
+
"type": "internal.Writable | null | undefined"
|
|
636
624
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
"__schema": "
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"__schema": "FunctionLikeSchema",
|
|
640
628
|
"location": {
|
|
641
629
|
"filePath": "harmony-worker.ts",
|
|
642
630
|
"line": 56,
|
|
643
|
-
"character":
|
|
631
|
+
"character": 3
|
|
644
632
|
},
|
|
645
|
-
"
|
|
646
|
-
"
|
|
633
|
+
"signature": "(method) HarmonyWorker<T>.initiate(options: Partial<InitOptions>): Remote<T>",
|
|
634
|
+
"name": "initiate",
|
|
635
|
+
"params": [
|
|
647
636
|
{
|
|
648
|
-
"__schema": "
|
|
637
|
+
"__schema": "ParameterSchema",
|
|
649
638
|
"location": {
|
|
650
639
|
"filePath": "harmony-worker.ts",
|
|
651
640
|
"line": 56,
|
|
652
|
-
"character":
|
|
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
|
+
]
|
|
653
664
|
},
|
|
654
|
-
"
|
|
665
|
+
"isOptional": false,
|
|
666
|
+
"isSpread": false
|
|
655
667
|
}
|
|
656
|
-
]
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
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": []
|
|
666
691
|
},
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
"params": [],
|
|
670
|
-
"returnType": {
|
|
671
|
-
"__schema": "InferenceTypeSchema",
|
|
692
|
+
{
|
|
693
|
+
"__schema": "FunctionLikeSchema",
|
|
672
694
|
"location": {
|
|
673
695
|
"filePath": "harmony-worker.ts",
|
|
674
696
|
"line": 64,
|
|
675
697
|
"character": 3
|
|
676
698
|
},
|
|
677
|
-
"
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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": []
|
|
687
712
|
},
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
"params": [],
|
|
691
|
-
"returnType": {
|
|
692
|
-
"__schema": "InferenceTypeSchema",
|
|
713
|
+
{
|
|
714
|
+
"__schema": "FunctionLikeSchema",
|
|
693
715
|
"location": {
|
|
694
716
|
"filePath": "harmony-worker.ts",
|
|
695
717
|
"line": 68,
|
|
696
718
|
"character": 3
|
|
697
719
|
},
|
|
698
|
-
"
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
"
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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
|
+
}
|
|
710
743
|
},
|
|
711
744
|
{
|
|
712
|
-
"__schema": "
|
|
745
|
+
"__schema": "ExportSchema",
|
|
713
746
|
"location": {
|
|
714
|
-
"filePath": "
|
|
715
|
-
"line":
|
|
716
|
-
"character":
|
|
747
|
+
"filePath": "index.ts",
|
|
748
|
+
"line": 9,
|
|
749
|
+
"character": 10
|
|
717
750
|
},
|
|
718
|
-
"signature": "function expose(object: any): void",
|
|
719
751
|
"name": "expose",
|
|
720
|
-
"
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
"
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
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",
|
|
731
764
|
"location": {
|
|
732
765
|
"filePath": "expose.ts",
|
|
733
766
|
"line": 25,
|
|
734
|
-
"character":
|
|
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"
|
|
735
778
|
},
|
|
736
|
-
"
|
|
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
|
|
737
789
|
},
|
|
738
|
-
"
|
|
739
|
-
"isSpread": false
|
|
740
|
-
}
|
|
741
|
-
],
|
|
742
|
-
"returnType": {
|
|
743
|
-
"__schema": "InferenceTypeSchema",
|
|
744
|
-
"location": {
|
|
745
|
-
"filePath": "expose.ts",
|
|
746
|
-
"line": 25,
|
|
747
|
-
"character": 1
|
|
790
|
+
"type": "void"
|
|
748
791
|
},
|
|
749
|
-
"
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
]
|
|
792
|
+
"modifiers": [
|
|
793
|
+
"export"
|
|
794
|
+
]
|
|
795
|
+
}
|
|
754
796
|
},
|
|
755
797
|
{
|
|
756
798
|
"__schema": "UnImplementedSchema",
|
|
@@ -839,6 +881,11 @@
|
|
|
839
881
|
"character": 26
|
|
840
882
|
},
|
|
841
883
|
"name": "SlotRegistry",
|
|
884
|
+
"componentId": {
|
|
885
|
+
"scope": "teambit.harmony",
|
|
886
|
+
"name": "harmony",
|
|
887
|
+
"version": "0.4.6"
|
|
888
|
+
},
|
|
842
889
|
"typeArgs": [
|
|
843
890
|
{
|
|
844
891
|
"__schema": "TypeRefSchema",
|
|
@@ -880,6 +927,11 @@
|
|
|
880
927
|
"character": 30
|
|
881
928
|
},
|
|
882
929
|
"name": "SlotRegistry",
|
|
930
|
+
"componentId": {
|
|
931
|
+
"scope": "teambit.harmony",
|
|
932
|
+
"name": "harmony",
|
|
933
|
+
"version": "0.4.6"
|
|
934
|
+
},
|
|
883
935
|
"typeArgs": [
|
|
884
936
|
{
|
|
885
937
|
"__schema": "KeywordTypeSchema",
|
|
@@ -928,7 +980,8 @@
|
|
|
928
980
|
"line": 11,
|
|
929
981
|
"character": 35
|
|
930
982
|
},
|
|
931
|
-
"name": "WorkerSlot"
|
|
983
|
+
"name": "WorkerSlot",
|
|
984
|
+
"internalFilePath": "worker.main.runtime.ts"
|
|
932
985
|
},
|
|
933
986
|
"isOptional": false,
|
|
934
987
|
"isSpread": false
|
|
@@ -948,7 +1001,8 @@
|
|
|
948
1001
|
"line": 11,
|
|
949
1002
|
"character": 71
|
|
950
1003
|
},
|
|
951
|
-
"name": "WorkerNameSlot"
|
|
1004
|
+
"name": "WorkerNameSlot",
|
|
1005
|
+
"internalFilePath": "worker.main.runtime.ts"
|
|
952
1006
|
},
|
|
953
1007
|
"isOptional": false,
|
|
954
1008
|
"isSpread": false
|
|
@@ -1283,7 +1337,8 @@
|
|
|
1283
1337
|
"line": 57,
|
|
1284
1338
|
"character": 72
|
|
1285
1339
|
},
|
|
1286
|
-
"name": "WorkerSlot"
|
|
1340
|
+
"name": "WorkerSlot",
|
|
1341
|
+
"internalFilePath": "worker.main.runtime.ts"
|
|
1287
1342
|
},
|
|
1288
1343
|
{
|
|
1289
1344
|
"__schema": "TypeRefSchema",
|
|
@@ -1292,7 +1347,8 @@
|
|
|
1292
1347
|
"line": 57,
|
|
1293
1348
|
"character": 84
|
|
1294
1349
|
},
|
|
1295
|
-
"name": "WorkerNameSlot"
|
|
1350
|
+
"name": "WorkerNameSlot",
|
|
1351
|
+
"internalFilePath": "worker.main.runtime.ts"
|
|
1296
1352
|
}
|
|
1297
1353
|
]
|
|
1298
1354
|
},
|
|
@@ -1613,7 +1669,8 @@
|
|
|
1613
1669
|
"line": 56,
|
|
1614
1670
|
"character": 29
|
|
1615
1671
|
},
|
|
1616
|
-
"name": "InitOptions"
|
|
1672
|
+
"name": "InitOptions",
|
|
1673
|
+
"internalFilePath": "harmony-worker.ts"
|
|
1617
1674
|
}
|
|
1618
1675
|
]
|
|
1619
1676
|
},
|
|
@@ -1629,6 +1686,7 @@
|
|
|
1629
1686
|
"character": 44
|
|
1630
1687
|
},
|
|
1631
1688
|
"name": "Remote",
|
|
1689
|
+
"packageName": "comlink",
|
|
1632
1690
|
"typeArgs": [
|
|
1633
1691
|
{
|
|
1634
1692
|
"__schema": "TypeRefSchema",
|
|
@@ -1701,7 +1759,7 @@
|
|
|
1701
1759
|
"componentId": {
|
|
1702
1760
|
"scope": "teambit.harmony",
|
|
1703
1761
|
"name": "worker",
|
|
1704
|
-
"version": "0.0.
|
|
1762
|
+
"version": "0.0.1167"
|
|
1705
1763
|
},
|
|
1706
1764
|
"taggedModuleExports": []
|
|
1707
1765
|
}
|