@typeslayer/validate 0.1.14 → 0.1.16
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/dist/index.d.mts +1946 -0
- package/dist/index.mjs +962 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{node.d.ts → node.d.mts} +4 -2
- package/dist/node.mjs +24 -0
- package/dist/node.mjs.map +1 -0
- package/package.json +17 -18
- package/src/index.ts +2 -2
- package/src/trace-json.ts +1 -1
- package/{tsup.config.ts → tsdown.config.ts} +1 -2
- package/dist/index.d.ts +0 -1939
- package/dist/index.js +0 -1023
- package/dist/index.js.map +0 -1
- package/dist/node.js +0 -21
- package/dist/node.js.map +0 -1
package/dist/index.js
DELETED
|
@@ -1,1023 +0,0 @@
|
|
|
1
|
-
// src/package-name.ts
|
|
2
|
-
var packageNameRegex = /\/node_modules\/((?:[^@][^/]+)|(?:@[^/]+\/[^/]+))/g;
|
|
3
|
-
var extractPackageName = (path) => {
|
|
4
|
-
const pnpmSentinel = "/node_modules/.pnpm/";
|
|
5
|
-
if (path.includes(pnpmSentinel)) {
|
|
6
|
-
const startIndex = path.indexOf(pnpmSentinel) + pnpmSentinel.length;
|
|
7
|
-
const endIndex = path.indexOf("/", startIndex);
|
|
8
|
-
if (endIndex === -1) {
|
|
9
|
-
throw new Error(
|
|
10
|
-
"Invalid path format: no closing slash found after pnpm sentinel"
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
return path.substring(startIndex, endIndex).replace("+", "/");
|
|
14
|
-
}
|
|
15
|
-
return path;
|
|
16
|
-
};
|
|
17
|
-
function relativizePath(from, to) {
|
|
18
|
-
const fromURL = new URL(`file://${from.endsWith("/") ? from : `${from}/}`}`);
|
|
19
|
-
const toURL = new URL(`file://${to}`);
|
|
20
|
-
const fromParts = fromURL.pathname.split("/").filter(Boolean);
|
|
21
|
-
const toParts = toURL.pathname.split("/").filter(Boolean);
|
|
22
|
-
let i = 0;
|
|
23
|
-
while (i < fromParts.length && i < toParts.length && fromParts[i] === toParts[i]) {
|
|
24
|
-
i++;
|
|
25
|
-
}
|
|
26
|
-
const up = fromParts.length - i;
|
|
27
|
-
const down = toParts.slice(i).join("/");
|
|
28
|
-
return `${"../".repeat(up)}${down}`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// src/trace-json.ts
|
|
32
|
-
import { z as z2 } from "zod/v4";
|
|
33
|
-
|
|
34
|
-
// src/utils.ts
|
|
35
|
-
import { z } from "zod/v4";
|
|
36
|
-
var typeId = z.number().int().positive().or(z.literal(-1));
|
|
37
|
-
var position = z.object({
|
|
38
|
-
line: typeId,
|
|
39
|
-
character: z.number()
|
|
40
|
-
});
|
|
41
|
-
var absolutePath = z.string();
|
|
42
|
-
var location = z.object({
|
|
43
|
-
path: absolutePath,
|
|
44
|
-
start: position,
|
|
45
|
-
end: position
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// src/trace-json.ts
|
|
49
|
-
var TRACE_JSON_FILENAME = "trace.json";
|
|
50
|
-
var eventPhase = {
|
|
51
|
-
begin: "B",
|
|
52
|
-
end: "E",
|
|
53
|
-
complete: "X",
|
|
54
|
-
metadata: "M",
|
|
55
|
-
instantGlobal: "I"
|
|
56
|
-
// 'i' is instantThread
|
|
57
|
-
};
|
|
58
|
-
var instantScope = {
|
|
59
|
-
thread: "t",
|
|
60
|
-
global: "g",
|
|
61
|
-
process: "p"
|
|
62
|
-
};
|
|
63
|
-
var durationEvent = {
|
|
64
|
-
ph: z2.union([z2.literal(eventPhase.begin), z2.literal(eventPhase.end)])
|
|
65
|
-
};
|
|
66
|
-
var completeEvent = {
|
|
67
|
-
ph: z2.literal(eventPhase.complete),
|
|
68
|
-
dur: z2.number().positive()
|
|
69
|
-
};
|
|
70
|
-
var instantEvent = {
|
|
71
|
-
ph: z2.literal(eventPhase.instantGlobal)
|
|
72
|
-
};
|
|
73
|
-
var category = {
|
|
74
|
-
parse: {
|
|
75
|
-
cat: z2.literal("parse")
|
|
76
|
-
},
|
|
77
|
-
program: {
|
|
78
|
-
cat: z2.literal("program")
|
|
79
|
-
},
|
|
80
|
-
bind: {
|
|
81
|
-
cat: z2.literal("bind")
|
|
82
|
-
},
|
|
83
|
-
check: {
|
|
84
|
-
cat: z2.literal("check")
|
|
85
|
-
},
|
|
86
|
-
checkTypes: {
|
|
87
|
-
cat: z2.literal("checkTypes")
|
|
88
|
-
},
|
|
89
|
-
emit: {
|
|
90
|
-
cat: z2.literal("emit")
|
|
91
|
-
},
|
|
92
|
-
session: {
|
|
93
|
-
cat: z2.literal("session")
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var eventCommon = {
|
|
97
|
-
pid: z2.number().int().positive(),
|
|
98
|
-
tid: z2.number().int().positive(),
|
|
99
|
-
ts: z2.number().positive()
|
|
100
|
-
};
|
|
101
|
-
var event_metadata__TracingStartedInBrowser = z2.object({
|
|
102
|
-
...eventCommon,
|
|
103
|
-
cat: z2.literal("disabled-by-default-devtools.timeline"),
|
|
104
|
-
name: z2.literal("TracingStartedInBrowser"),
|
|
105
|
-
ph: z2.literal(eventPhase.metadata)
|
|
106
|
-
}).strict();
|
|
107
|
-
var event_metadata__process_name = z2.object({
|
|
108
|
-
...eventCommon,
|
|
109
|
-
ph: z2.literal(eventPhase.metadata),
|
|
110
|
-
args: z2.object({
|
|
111
|
-
name: z2.literal("tsc")
|
|
112
|
-
}),
|
|
113
|
-
cat: z2.literal("__metadata"),
|
|
114
|
-
name: z2.literal("process_name")
|
|
115
|
-
}).strict();
|
|
116
|
-
var event_metadata__thread_name = z2.object({
|
|
117
|
-
...eventCommon,
|
|
118
|
-
name: z2.literal("thread_name"),
|
|
119
|
-
cat: z2.literal("__metadata"),
|
|
120
|
-
ph: z2.literal(eventPhase.metadata),
|
|
121
|
-
args: z2.object({
|
|
122
|
-
name: z2.literal("Main")
|
|
123
|
-
})
|
|
124
|
-
}).strict();
|
|
125
|
-
var event_parse__createSourceFile = z2.object({
|
|
126
|
-
...eventCommon,
|
|
127
|
-
...category.parse,
|
|
128
|
-
...durationEvent,
|
|
129
|
-
name: z2.literal("createSourceFile"),
|
|
130
|
-
args: z2.object({
|
|
131
|
-
path: absolutePath
|
|
132
|
-
})
|
|
133
|
-
}).strict();
|
|
134
|
-
var event_parse__parseJsonSourceFileConfigFileContent = z2.object({
|
|
135
|
-
...eventCommon,
|
|
136
|
-
...category.parse,
|
|
137
|
-
...completeEvent,
|
|
138
|
-
name: z2.literal("parseJsonSourceFileConfigFileContent"),
|
|
139
|
-
args: z2.object({
|
|
140
|
-
path: absolutePath
|
|
141
|
-
})
|
|
142
|
-
}).strict();
|
|
143
|
-
var event_program__createProgram = z2.object({
|
|
144
|
-
...eventCommon,
|
|
145
|
-
...category.program,
|
|
146
|
-
...durationEvent,
|
|
147
|
-
name: z2.literal("createProgram"),
|
|
148
|
-
args: z2.object({
|
|
149
|
-
configFilePath: absolutePath
|
|
150
|
-
// path to the tsconfig.json file
|
|
151
|
-
})
|
|
152
|
-
}).strict();
|
|
153
|
-
var event_program__findSourceFile = z2.object({
|
|
154
|
-
...eventCommon,
|
|
155
|
-
...category.program,
|
|
156
|
-
...completeEvent,
|
|
157
|
-
name: z2.literal("findSourceFile"),
|
|
158
|
-
dur: z2.number(),
|
|
159
|
-
args: z2.object({
|
|
160
|
-
fileName: absolutePath,
|
|
161
|
-
fileIncludeKind: z2.union([
|
|
162
|
-
z2.literal("RootFile"),
|
|
163
|
-
z2.literal("Import"),
|
|
164
|
-
z2.literal("TypeReferenceDirective"),
|
|
165
|
-
z2.literal("LibFile"),
|
|
166
|
-
z2.literal("LibReferenceDirective"),
|
|
167
|
-
z2.literal("AutomaticTypeDirectiveFile"),
|
|
168
|
-
z2.literal("ReferenceFile")
|
|
169
|
-
])
|
|
170
|
-
})
|
|
171
|
-
}).strict();
|
|
172
|
-
var event_program__processRootFiles = z2.object({
|
|
173
|
-
...eventCommon,
|
|
174
|
-
...category.program,
|
|
175
|
-
...completeEvent,
|
|
176
|
-
name: z2.literal("processRootFiles"),
|
|
177
|
-
dur: z2.number(),
|
|
178
|
-
args: z2.object({ count: z2.number().int().positive() })
|
|
179
|
-
}).strict();
|
|
180
|
-
var event_program__processTypeReferenceDirective = z2.object({
|
|
181
|
-
...eventCommon,
|
|
182
|
-
...category.program,
|
|
183
|
-
...completeEvent,
|
|
184
|
-
name: z2.literal("processTypeReferenceDirective"),
|
|
185
|
-
dur: z2.number(),
|
|
186
|
-
args: z2.object({
|
|
187
|
-
directive: z2.string(),
|
|
188
|
-
hasResolved: z2.literal(true),
|
|
189
|
-
refKind: z2.number().int().positive(),
|
|
190
|
-
refPath: absolutePath.optional()
|
|
191
|
-
})
|
|
192
|
-
}).strict();
|
|
193
|
-
var event_program__processTypeReferences = z2.object({
|
|
194
|
-
...eventCommon,
|
|
195
|
-
...category.program,
|
|
196
|
-
...completeEvent,
|
|
197
|
-
name: z2.literal("processTypeReferences"),
|
|
198
|
-
dur: z2.number(),
|
|
199
|
-
args: z2.object({
|
|
200
|
-
count: z2.number().int().positive()
|
|
201
|
-
})
|
|
202
|
-
}).strict();
|
|
203
|
-
var event_program__resolveLibrary = z2.object({
|
|
204
|
-
...eventCommon,
|
|
205
|
-
...category.program,
|
|
206
|
-
...completeEvent,
|
|
207
|
-
name: z2.literal("resolveLibrary"),
|
|
208
|
-
args: z2.object({
|
|
209
|
-
resolveFrom: absolutePath
|
|
210
|
-
})
|
|
211
|
-
}).strict();
|
|
212
|
-
var event_program__resolveModuleNamesWorker = z2.object({
|
|
213
|
-
...eventCommon,
|
|
214
|
-
...category.program,
|
|
215
|
-
...completeEvent,
|
|
216
|
-
name: z2.literal("resolveModuleNamesWorker"),
|
|
217
|
-
args: z2.object({
|
|
218
|
-
containingFileName: absolutePath
|
|
219
|
-
})
|
|
220
|
-
}).strict();
|
|
221
|
-
var event_program__resolveTypeReferenceDirectiveNamesWorker = z2.object({
|
|
222
|
-
...eventCommon,
|
|
223
|
-
...category.program,
|
|
224
|
-
...completeEvent,
|
|
225
|
-
name: z2.literal("resolveTypeReferenceDirectiveNamesWorker"),
|
|
226
|
-
args: z2.object({
|
|
227
|
-
containingFileName: absolutePath
|
|
228
|
-
})
|
|
229
|
-
}).strict();
|
|
230
|
-
var event_program__shouldProgramCreateNewSourceFiles = z2.object({
|
|
231
|
-
...eventCommon,
|
|
232
|
-
...category.program,
|
|
233
|
-
...instantEvent,
|
|
234
|
-
name: z2.literal("shouldProgramCreateNewSourceFiles"),
|
|
235
|
-
s: z2.union([
|
|
236
|
-
z2.literal(instantScope.global),
|
|
237
|
-
z2.literal(instantScope.thread),
|
|
238
|
-
z2.literal(instantScope.process)
|
|
239
|
-
]),
|
|
240
|
-
args: z2.object({
|
|
241
|
-
hasOldProgram: z2.boolean()
|
|
242
|
-
})
|
|
243
|
-
}).strict();
|
|
244
|
-
var event_program__tryReuseStructureFromOldProgram = z2.object({
|
|
245
|
-
...eventCommon,
|
|
246
|
-
...category.program,
|
|
247
|
-
...completeEvent,
|
|
248
|
-
name: z2.literal("tryReuseStructureFromOldProgram"),
|
|
249
|
-
dur: z2.number(),
|
|
250
|
-
args: z2.object({})
|
|
251
|
-
}).strict();
|
|
252
|
-
var event_bind__bindSourceFile = z2.object({
|
|
253
|
-
...eventCommon,
|
|
254
|
-
...category.bind,
|
|
255
|
-
...durationEvent,
|
|
256
|
-
name: z2.literal("bindSourceFile"),
|
|
257
|
-
args: z2.object({
|
|
258
|
-
path: absolutePath
|
|
259
|
-
})
|
|
260
|
-
}).strict();
|
|
261
|
-
var event_check__checkExpression = z2.object({
|
|
262
|
-
...eventCommon,
|
|
263
|
-
...category.check,
|
|
264
|
-
...completeEvent,
|
|
265
|
-
name: z2.literal("checkExpression"),
|
|
266
|
-
dur: z2.number(),
|
|
267
|
-
args: z2.object({
|
|
268
|
-
kind: z2.number(),
|
|
269
|
-
pos: z2.number(),
|
|
270
|
-
end: z2.number(),
|
|
271
|
-
path: absolutePath.optional()
|
|
272
|
-
})
|
|
273
|
-
}).strict();
|
|
274
|
-
var event_check__checkSourceFile = z2.object({
|
|
275
|
-
...eventCommon,
|
|
276
|
-
...category.check,
|
|
277
|
-
...durationEvent,
|
|
278
|
-
name: z2.literal("checkSourceFile"),
|
|
279
|
-
args: z2.object({
|
|
280
|
-
path: absolutePath
|
|
281
|
-
})
|
|
282
|
-
}).strict();
|
|
283
|
-
var event_check__checkVariableDeclaration = z2.object({
|
|
284
|
-
...eventCommon,
|
|
285
|
-
...category.check,
|
|
286
|
-
...completeEvent,
|
|
287
|
-
name: z2.literal("checkVariableDeclaration"),
|
|
288
|
-
dur: z2.number(),
|
|
289
|
-
args: z2.object({
|
|
290
|
-
kind: z2.number(),
|
|
291
|
-
pos: z2.number(),
|
|
292
|
-
end: z2.number(),
|
|
293
|
-
path: absolutePath
|
|
294
|
-
})
|
|
295
|
-
}).strict();
|
|
296
|
-
var event_check__checkDeferredNode = z2.object({
|
|
297
|
-
...eventCommon,
|
|
298
|
-
...category.check,
|
|
299
|
-
...completeEvent,
|
|
300
|
-
name: z2.literal("checkDeferredNode"),
|
|
301
|
-
dur: z2.number(),
|
|
302
|
-
args: z2.object({
|
|
303
|
-
kind: z2.number(),
|
|
304
|
-
pos: z2.number(),
|
|
305
|
-
end: z2.number(),
|
|
306
|
-
path: absolutePath
|
|
307
|
-
})
|
|
308
|
-
}).strict();
|
|
309
|
-
var event_check__checkSourceFileNodes = z2.object({
|
|
310
|
-
...eventCommon,
|
|
311
|
-
...category.check,
|
|
312
|
-
...completeEvent,
|
|
313
|
-
name: z2.literal("checkSourceFileNodes"),
|
|
314
|
-
dur: z2.number(),
|
|
315
|
-
args: z2.object({
|
|
316
|
-
path: absolutePath
|
|
317
|
-
})
|
|
318
|
-
}).strict();
|
|
319
|
-
var event_checktypes__checkTypeParameterDeferred = z2.object({
|
|
320
|
-
...eventCommon,
|
|
321
|
-
...category.checkTypes,
|
|
322
|
-
...completeEvent,
|
|
323
|
-
name: z2.literal("checkTypeParameterDeferred"),
|
|
324
|
-
dur: z2.number(),
|
|
325
|
-
args: z2.object({
|
|
326
|
-
parent: typeId,
|
|
327
|
-
id: typeId
|
|
328
|
-
})
|
|
329
|
-
}).strict();
|
|
330
|
-
var event_checktypes__getVariancesWorker = z2.object({
|
|
331
|
-
...eventCommon,
|
|
332
|
-
...category.checkTypes,
|
|
333
|
-
...completeEvent,
|
|
334
|
-
name: z2.literal("getVariancesWorker"),
|
|
335
|
-
dur: z2.number(),
|
|
336
|
-
args: z2.object({
|
|
337
|
-
arity: z2.number().int().nonnegative(),
|
|
338
|
-
id: z2.number().int().positive(),
|
|
339
|
-
results: z2.object({
|
|
340
|
-
variances: z2.array(
|
|
341
|
-
z2.union([
|
|
342
|
-
z2.literal("[independent]"),
|
|
343
|
-
z2.literal("[independent] (unreliable)"),
|
|
344
|
-
z2.literal("[independent] (unmeasurable)"),
|
|
345
|
-
z2.literal("[bivariant]"),
|
|
346
|
-
z2.literal("[bivariant] (unreliable)"),
|
|
347
|
-
z2.literal("[bivariant] (unmeasurable)"),
|
|
348
|
-
z2.literal("in"),
|
|
349
|
-
z2.literal("in (unreliable)"),
|
|
350
|
-
z2.literal("in (unmeasurable)"),
|
|
351
|
-
z2.literal("out"),
|
|
352
|
-
z2.literal("out (unreliable)"),
|
|
353
|
-
z2.literal("out (unmeasurable)"),
|
|
354
|
-
z2.literal(
|
|
355
|
-
"in out"
|
|
356
|
-
/*burger*/
|
|
357
|
-
),
|
|
358
|
-
z2.literal("in out (unreliable)"),
|
|
359
|
-
z2.literal("in out (unmeasurable)")
|
|
360
|
-
])
|
|
361
|
-
)
|
|
362
|
-
})
|
|
363
|
-
})
|
|
364
|
-
}).strict();
|
|
365
|
-
var event_checktypes__structuredTypeRelatedTo = z2.object({
|
|
366
|
-
...eventCommon,
|
|
367
|
-
...category.checkTypes,
|
|
368
|
-
...completeEvent,
|
|
369
|
-
name: z2.literal("structuredTypeRelatedTo"),
|
|
370
|
-
args: z2.object({
|
|
371
|
-
sourceId: typeId,
|
|
372
|
-
targetId: typeId
|
|
373
|
-
})
|
|
374
|
-
}).strict();
|
|
375
|
-
var event_checktypes__checkCrossProductUnion_DepthLimit = z2.object({
|
|
376
|
-
...eventCommon,
|
|
377
|
-
...category.checkTypes,
|
|
378
|
-
...instantEvent,
|
|
379
|
-
name: z2.literal("checkCrossProductUnion_DepthLimit"),
|
|
380
|
-
s: z2.union([
|
|
381
|
-
z2.literal(instantScope.global),
|
|
382
|
-
z2.literal(instantScope.thread),
|
|
383
|
-
z2.literal(instantScope.process)
|
|
384
|
-
]),
|
|
385
|
-
args: z2.object({
|
|
386
|
-
types: z2.array(typeId),
|
|
387
|
-
size: z2.number().int().positive()
|
|
388
|
-
})
|
|
389
|
-
}).strict();
|
|
390
|
-
var event_checktypes__checkTypeRelatedTo_DepthLimit = z2.object({
|
|
391
|
-
...eventCommon,
|
|
392
|
-
...category.checkTypes,
|
|
393
|
-
...instantEvent,
|
|
394
|
-
name: z2.literal("checkTypeRelatedTo_DepthLimit"),
|
|
395
|
-
s: z2.union([
|
|
396
|
-
z2.literal(instantScope.global),
|
|
397
|
-
z2.literal(instantScope.thread),
|
|
398
|
-
z2.literal(instantScope.process)
|
|
399
|
-
]),
|
|
400
|
-
args: z2.object({
|
|
401
|
-
sourceId: typeId,
|
|
402
|
-
targetId: typeId,
|
|
403
|
-
depth: z2.number().int().positive(),
|
|
404
|
-
targetDepth: z2.number().int().positive()
|
|
405
|
-
})
|
|
406
|
-
}).strict();
|
|
407
|
-
var event_checktypes__getTypeAtFlowNode_DepthLimit = z2.object({
|
|
408
|
-
...eventCommon,
|
|
409
|
-
...category.checkTypes,
|
|
410
|
-
...instantEvent,
|
|
411
|
-
name: z2.literal("getTypeAtFlowNode_DepthLimit"),
|
|
412
|
-
s: z2.union([
|
|
413
|
-
z2.literal(instantScope.global),
|
|
414
|
-
z2.literal(instantScope.thread),
|
|
415
|
-
z2.literal(instantScope.process)
|
|
416
|
-
]),
|
|
417
|
-
args: z2.object({
|
|
418
|
-
flowId: z2.number().int().positive()
|
|
419
|
-
})
|
|
420
|
-
}).strict();
|
|
421
|
-
var event_checktypes__instantiateType_DepthLimit = z2.object({
|
|
422
|
-
...eventCommon,
|
|
423
|
-
...category.checkTypes,
|
|
424
|
-
...instantEvent,
|
|
425
|
-
name: z2.literal("instantiateType_DepthLimit"),
|
|
426
|
-
s: z2.union([
|
|
427
|
-
z2.literal(instantScope.global),
|
|
428
|
-
z2.literal(instantScope.thread),
|
|
429
|
-
z2.literal(instantScope.process)
|
|
430
|
-
]),
|
|
431
|
-
args: z2.object({
|
|
432
|
-
typeId,
|
|
433
|
-
instantiationDepth: z2.number().int(),
|
|
434
|
-
instantiationCount: z2.number().int().positive()
|
|
435
|
-
})
|
|
436
|
-
}).strict();
|
|
437
|
-
var event_checktypes__recursiveTypeRelatedTo_DepthLimit = z2.object({
|
|
438
|
-
...eventCommon,
|
|
439
|
-
...category.checkTypes,
|
|
440
|
-
...instantEvent,
|
|
441
|
-
name: z2.literal("recursiveTypeRelatedTo_DepthLimit"),
|
|
442
|
-
s: z2.union([
|
|
443
|
-
z2.literal(instantScope.global),
|
|
444
|
-
z2.literal(instantScope.thread),
|
|
445
|
-
z2.literal(instantScope.process)
|
|
446
|
-
]),
|
|
447
|
-
args: z2.object({
|
|
448
|
-
sourceId: typeId,
|
|
449
|
-
sourceIdStack: z2.array(typeId),
|
|
450
|
-
targetId: typeId,
|
|
451
|
-
targetIdStack: z2.array(typeId),
|
|
452
|
-
depth: z2.number().int().positive(),
|
|
453
|
-
targetDepth: z2.number().int().positive()
|
|
454
|
-
})
|
|
455
|
-
}).strict();
|
|
456
|
-
var event_checktypes__removeSubtypes_DepthLimit = z2.object({
|
|
457
|
-
...eventCommon,
|
|
458
|
-
...category.checkTypes,
|
|
459
|
-
...instantEvent,
|
|
460
|
-
name: z2.literal("removeSubtypes_DepthLimit"),
|
|
461
|
-
s: z2.union([
|
|
462
|
-
z2.literal(instantScope.global),
|
|
463
|
-
z2.literal(instantScope.thread),
|
|
464
|
-
z2.literal(instantScope.process)
|
|
465
|
-
]),
|
|
466
|
-
args: z2.object({
|
|
467
|
-
typeIds: z2.array(typeId)
|
|
468
|
-
})
|
|
469
|
-
}).strict();
|
|
470
|
-
var event_checktypes__traceUnionsOrIntersectionsTooLarge_DepthLimit = z2.object({
|
|
471
|
-
...eventCommon,
|
|
472
|
-
...category.checkTypes,
|
|
473
|
-
...instantEvent,
|
|
474
|
-
name: z2.literal("traceUnionsOrIntersectionsTooLarge_DepthLimit"),
|
|
475
|
-
s: z2.union([
|
|
476
|
-
z2.literal(instantScope.global),
|
|
477
|
-
z2.literal(instantScope.thread),
|
|
478
|
-
z2.literal(instantScope.process)
|
|
479
|
-
]),
|
|
480
|
-
args: z2.object({
|
|
481
|
-
sourceId: typeId,
|
|
482
|
-
sourceSize: z2.number().int().positive(),
|
|
483
|
-
targetId: typeId,
|
|
484
|
-
targetSize: z2.number().int().positive(),
|
|
485
|
-
pos: z2.number().int().nonnegative().optional(),
|
|
486
|
-
end: z2.number().int().positive().optional()
|
|
487
|
-
})
|
|
488
|
-
}).strict();
|
|
489
|
-
var event_checktypes__typeRelatedToDiscriminatedType_DepthLimit = z2.object({
|
|
490
|
-
...eventCommon,
|
|
491
|
-
...category.checkTypes,
|
|
492
|
-
...instantEvent,
|
|
493
|
-
name: z2.literal("typeRelatedToDiscriminatedType_DepthLimit"),
|
|
494
|
-
s: z2.union([
|
|
495
|
-
z2.literal(instantScope.global),
|
|
496
|
-
z2.literal(instantScope.thread),
|
|
497
|
-
z2.literal(instantScope.process)
|
|
498
|
-
]),
|
|
499
|
-
args: z2.object({
|
|
500
|
-
sourceId: typeId,
|
|
501
|
-
targetId: typeId,
|
|
502
|
-
numCombinations: z2.number().int().positive()
|
|
503
|
-
})
|
|
504
|
-
}).strict();
|
|
505
|
-
var depthLimits = [
|
|
506
|
-
event_checktypes__checkCrossProductUnion_DepthLimit,
|
|
507
|
-
event_checktypes__checkTypeRelatedTo_DepthLimit,
|
|
508
|
-
event_checktypes__getTypeAtFlowNode_DepthLimit,
|
|
509
|
-
event_checktypes__instantiateType_DepthLimit,
|
|
510
|
-
event_checktypes__recursiveTypeRelatedTo_DepthLimit,
|
|
511
|
-
event_checktypes__removeSubtypes_DepthLimit,
|
|
512
|
-
event_checktypes__traceUnionsOrIntersectionsTooLarge_DepthLimit,
|
|
513
|
-
event_checktypes__typeRelatedToDiscriminatedType_DepthLimit
|
|
514
|
-
];
|
|
515
|
-
var event_emit__emit = z2.object({
|
|
516
|
-
...eventCommon,
|
|
517
|
-
...category.emit,
|
|
518
|
-
...durationEvent,
|
|
519
|
-
name: z2.literal("emit"),
|
|
520
|
-
args: z2.object({})
|
|
521
|
-
// for some reason, this is empty
|
|
522
|
-
}).strict();
|
|
523
|
-
var event_emit__emitBuildInfo = z2.object({
|
|
524
|
-
...eventCommon,
|
|
525
|
-
...category.emit,
|
|
526
|
-
ph: z2.union([
|
|
527
|
-
z2.literal(eventPhase.begin),
|
|
528
|
-
z2.literal(eventPhase.end),
|
|
529
|
-
z2.literal(eventPhase.complete)
|
|
530
|
-
]),
|
|
531
|
-
dur: z2.number().positive().optional(),
|
|
532
|
-
name: z2.literal("emitBuildInfo"),
|
|
533
|
-
args: z2.union([
|
|
534
|
-
z2.object({}),
|
|
535
|
-
z2.object({
|
|
536
|
-
buildInfoPath: absolutePath
|
|
537
|
-
})
|
|
538
|
-
])
|
|
539
|
-
}).strict();
|
|
540
|
-
var event_emit__emitDeclarationFileOrBundle = z2.object({
|
|
541
|
-
...eventCommon,
|
|
542
|
-
...category.emit,
|
|
543
|
-
...completeEvent,
|
|
544
|
-
name: z2.literal("emitDeclarationFileOrBundle"),
|
|
545
|
-
dur: z2.number(),
|
|
546
|
-
args: z2.object({
|
|
547
|
-
declarationFilePath: absolutePath
|
|
548
|
-
})
|
|
549
|
-
}).strict();
|
|
550
|
-
var event_emit__emitJsFileOrBundle = z2.object({
|
|
551
|
-
...eventCommon,
|
|
552
|
-
...category.emit,
|
|
553
|
-
...completeEvent,
|
|
554
|
-
name: z2.literal("emitJsFileOrBundle"),
|
|
555
|
-
dur: z2.number(),
|
|
556
|
-
args: z2.object({
|
|
557
|
-
jsFilePath: absolutePath
|
|
558
|
-
})
|
|
559
|
-
}).strict();
|
|
560
|
-
var event_emit__transformNodes = z2.object({
|
|
561
|
-
...eventCommon,
|
|
562
|
-
...category.emit,
|
|
563
|
-
...completeEvent,
|
|
564
|
-
name: z2.literal("transformNodes"),
|
|
565
|
-
args: z2.object({
|
|
566
|
-
path: absolutePath
|
|
567
|
-
})
|
|
568
|
-
}).strict();
|
|
569
|
-
var event_session__cancellationThrown = z2.object({
|
|
570
|
-
...eventCommon,
|
|
571
|
-
...category.session,
|
|
572
|
-
...instantEvent,
|
|
573
|
-
name: z2.literal("cancellationThrown"),
|
|
574
|
-
args: z2.object({
|
|
575
|
-
kind: z2.union([
|
|
576
|
-
z2.literal("CancellationTokenObject"),
|
|
577
|
-
z2.literal("ThrotledCancellationToken")
|
|
578
|
-
])
|
|
579
|
-
})
|
|
580
|
-
}).strict();
|
|
581
|
-
var event_session__commandCanceled = z2.object({
|
|
582
|
-
...eventCommon,
|
|
583
|
-
...category.session,
|
|
584
|
-
...instantEvent,
|
|
585
|
-
name: z2.literal("commandCanceled"),
|
|
586
|
-
args: z2.object({
|
|
587
|
-
seq: z2.number().int().nonnegative(),
|
|
588
|
-
command: z2.string()
|
|
589
|
-
})
|
|
590
|
-
}).strict();
|
|
591
|
-
var event_session__commandError = z2.object({
|
|
592
|
-
...eventCommon,
|
|
593
|
-
...category.session,
|
|
594
|
-
...instantEvent,
|
|
595
|
-
name: z2.literal("commandError"),
|
|
596
|
-
args: z2.object({
|
|
597
|
-
seq: z2.number().int().nonnegative(),
|
|
598
|
-
command: z2.string(),
|
|
599
|
-
message: z2.string()
|
|
600
|
-
})
|
|
601
|
-
}).strict();
|
|
602
|
-
var event_session__createConfiguredProject = z2.object({
|
|
603
|
-
...eventCommon,
|
|
604
|
-
...category.session,
|
|
605
|
-
...instantEvent,
|
|
606
|
-
name: z2.literal("createConfiguredProject"),
|
|
607
|
-
args: z2.object({
|
|
608
|
-
configFilePath: absolutePath
|
|
609
|
-
})
|
|
610
|
-
}).strict();
|
|
611
|
-
var event_session__createdDocumentRegistryBucket = z2.object({
|
|
612
|
-
...eventCommon,
|
|
613
|
-
...category.session,
|
|
614
|
-
...instantEvent,
|
|
615
|
-
name: z2.literal("createdDocumentRegistryBucket"),
|
|
616
|
-
args: z2.object({
|
|
617
|
-
configFilePath: absolutePath,
|
|
618
|
-
key: z2.string()
|
|
619
|
-
})
|
|
620
|
-
}).strict();
|
|
621
|
-
var event_session__documentRegistryBucketOverlap = z2.object({
|
|
622
|
-
...eventCommon,
|
|
623
|
-
...category.session,
|
|
624
|
-
...instantEvent,
|
|
625
|
-
name: z2.literal("documentRegistryBucketOverlap"),
|
|
626
|
-
args: z2.object({
|
|
627
|
-
path: absolutePath,
|
|
628
|
-
key1: z2.string(),
|
|
629
|
-
key2: z2.string()
|
|
630
|
-
})
|
|
631
|
-
}).strict();
|
|
632
|
-
var event_session__executeCommand = z2.object({
|
|
633
|
-
...eventCommon,
|
|
634
|
-
...category.session,
|
|
635
|
-
...durationEvent,
|
|
636
|
-
name: z2.literal("executeCommand"),
|
|
637
|
-
args: z2.object({
|
|
638
|
-
seq: z2.number().int().nonnegative(),
|
|
639
|
-
command: z2.string()
|
|
640
|
-
})
|
|
641
|
-
}).strict();
|
|
642
|
-
var event_session__finishCachingPerDirectoryResolution = z2.object({
|
|
643
|
-
...eventCommon,
|
|
644
|
-
...category.session,
|
|
645
|
-
...instantEvent,
|
|
646
|
-
name: z2.literal("finishCachingPerDirectoryResolution"),
|
|
647
|
-
s: z2.union([
|
|
648
|
-
z2.literal(instantScope.global),
|
|
649
|
-
z2.literal(instantScope.thread),
|
|
650
|
-
z2.literal(instantScope.process)
|
|
651
|
-
])
|
|
652
|
-
}).strict();
|
|
653
|
-
var event_session__getPackageJsonAutoImportProvider = z2.object({
|
|
654
|
-
...eventCommon,
|
|
655
|
-
...category.session,
|
|
656
|
-
...completeEvent,
|
|
657
|
-
name: z2.literal("getPackageJsonAutoImportProvider")
|
|
658
|
-
}).strict();
|
|
659
|
-
var event_session__getUnresolvedImports = z2.object({
|
|
660
|
-
...eventCommon,
|
|
661
|
-
...category.session,
|
|
662
|
-
...completeEvent,
|
|
663
|
-
name: z2.literal("getUnresolvedImports"),
|
|
664
|
-
args: z2.object({
|
|
665
|
-
count: z2.number().int().nonnegative()
|
|
666
|
-
})
|
|
667
|
-
}).strict();
|
|
668
|
-
var event_session__loadConfiguredProject = z2.object({
|
|
669
|
-
...eventCommon,
|
|
670
|
-
...category.session,
|
|
671
|
-
...durationEvent,
|
|
672
|
-
name: z2.literal("loadConfiguredProject"),
|
|
673
|
-
args: z2.object({
|
|
674
|
-
configFilePath: absolutePath
|
|
675
|
-
})
|
|
676
|
-
}).strict();
|
|
677
|
-
var event_session__regionSemanticCheck = z2.object({
|
|
678
|
-
...eventCommon,
|
|
679
|
-
...category.session,
|
|
680
|
-
...durationEvent,
|
|
681
|
-
name: z2.literal("regionSemanticCheck"),
|
|
682
|
-
args: z2.object({
|
|
683
|
-
file: absolutePath,
|
|
684
|
-
configFilePath: absolutePath
|
|
685
|
-
})
|
|
686
|
-
}).strict();
|
|
687
|
-
var event_session__request = z2.object({
|
|
688
|
-
...eventCommon,
|
|
689
|
-
...category.session,
|
|
690
|
-
...instantEvent,
|
|
691
|
-
name: z2.literal("request"),
|
|
692
|
-
args: z2.object({
|
|
693
|
-
seq: z2.number().int().nonnegative(),
|
|
694
|
-
command: z2.string()
|
|
695
|
-
})
|
|
696
|
-
}).strict();
|
|
697
|
-
var event_session__response = z2.object({
|
|
698
|
-
...eventCommon,
|
|
699
|
-
...category.session,
|
|
700
|
-
...instantEvent,
|
|
701
|
-
name: z2.literal("response"),
|
|
702
|
-
args: z2.object({
|
|
703
|
-
seq: z2.number().int().nonnegative(),
|
|
704
|
-
command: z2.string(),
|
|
705
|
-
success: z2.boolean()
|
|
706
|
-
})
|
|
707
|
-
}).strict();
|
|
708
|
-
var event_session__semanticCheck = z2.object({
|
|
709
|
-
...eventCommon,
|
|
710
|
-
...category.session,
|
|
711
|
-
...durationEvent,
|
|
712
|
-
name: z2.literal("semanticCheck"),
|
|
713
|
-
args: z2.object({
|
|
714
|
-
file: absolutePath,
|
|
715
|
-
configFilePath: absolutePath
|
|
716
|
-
})
|
|
717
|
-
}).strict();
|
|
718
|
-
var event_session__stepAction = z2.object({
|
|
719
|
-
...eventCommon,
|
|
720
|
-
...category.session,
|
|
721
|
-
...instantEvent,
|
|
722
|
-
name: z2.literal("stepAction"),
|
|
723
|
-
s: z2.union([
|
|
724
|
-
z2.literal(instantScope.global),
|
|
725
|
-
z2.literal(instantScope.thread),
|
|
726
|
-
z2.literal(instantScope.process)
|
|
727
|
-
]),
|
|
728
|
-
args: z2.object({
|
|
729
|
-
seq: z2.number().int().nonnegative()
|
|
730
|
-
})
|
|
731
|
-
}).strict();
|
|
732
|
-
var event_session__stepCanceled = z2.object({
|
|
733
|
-
...eventCommon,
|
|
734
|
-
...category.session,
|
|
735
|
-
...instantEvent,
|
|
736
|
-
name: z2.literal("stepCanceled"),
|
|
737
|
-
args: z2.object({
|
|
738
|
-
seq: z2.number().int().nonnegative(),
|
|
739
|
-
early: z2.literal(true).optional()
|
|
740
|
-
})
|
|
741
|
-
}).strict();
|
|
742
|
-
var event_session__stepError = z2.object({
|
|
743
|
-
...eventCommon,
|
|
744
|
-
...category.session,
|
|
745
|
-
...instantEvent,
|
|
746
|
-
name: z2.literal("stepError"),
|
|
747
|
-
args: z2.object({
|
|
748
|
-
seq: z2.number().int().nonnegative(),
|
|
749
|
-
message: z2.string()
|
|
750
|
-
})
|
|
751
|
-
}).strict();
|
|
752
|
-
var event_session__suggestionCheck = z2.object({
|
|
753
|
-
...eventCommon,
|
|
754
|
-
...category.session,
|
|
755
|
-
...durationEvent,
|
|
756
|
-
name: z2.literal("suggestionCheck"),
|
|
757
|
-
args: z2.object({
|
|
758
|
-
file: absolutePath,
|
|
759
|
-
configFilePath: absolutePath
|
|
760
|
-
})
|
|
761
|
-
}).strict();
|
|
762
|
-
var event_session__syntacticCheck = z2.object({
|
|
763
|
-
...eventCommon,
|
|
764
|
-
...category.session,
|
|
765
|
-
...durationEvent,
|
|
766
|
-
name: z2.literal("syntacticCheck"),
|
|
767
|
-
args: z2.object({
|
|
768
|
-
file: absolutePath,
|
|
769
|
-
configFilePath: absolutePath
|
|
770
|
-
})
|
|
771
|
-
}).strict();
|
|
772
|
-
var event_session__updateGraph = z2.object({
|
|
773
|
-
...eventCommon,
|
|
774
|
-
...category.session,
|
|
775
|
-
...durationEvent,
|
|
776
|
-
name: z2.literal("updateGraph"),
|
|
777
|
-
args: z2.object({
|
|
778
|
-
name: z2.string(),
|
|
779
|
-
kind: z2.union([
|
|
780
|
-
z2.literal(0),
|
|
781
|
-
//"Inferred
|
|
782
|
-
z2.literal(1),
|
|
783
|
-
// Configured"
|
|
784
|
-
z2.literal(2),
|
|
785
|
-
// "Inferred"
|
|
786
|
-
z2.literal(3),
|
|
787
|
-
// "External"
|
|
788
|
-
z2.literal(4),
|
|
789
|
-
// "AutoImportProvider"
|
|
790
|
-
z2.literal(5)
|
|
791
|
-
// "Auxiliary"
|
|
792
|
-
])
|
|
793
|
-
})
|
|
794
|
-
}).strict();
|
|
795
|
-
var traceEvent = z2.discriminatedUnion(
|
|
796
|
-
"name",
|
|
797
|
-
[
|
|
798
|
-
event_metadata__TracingStartedInBrowser,
|
|
799
|
-
event_metadata__process_name,
|
|
800
|
-
event_metadata__thread_name,
|
|
801
|
-
event_parse__createSourceFile,
|
|
802
|
-
event_parse__parseJsonSourceFileConfigFileContent,
|
|
803
|
-
event_program__createProgram,
|
|
804
|
-
event_program__findSourceFile,
|
|
805
|
-
event_program__processRootFiles,
|
|
806
|
-
event_program__processTypeReferenceDirective,
|
|
807
|
-
event_program__processTypeReferences,
|
|
808
|
-
event_program__resolveLibrary,
|
|
809
|
-
event_program__resolveModuleNamesWorker,
|
|
810
|
-
event_program__resolveTypeReferenceDirectiveNamesWorker,
|
|
811
|
-
event_program__shouldProgramCreateNewSourceFiles,
|
|
812
|
-
event_program__tryReuseStructureFromOldProgram,
|
|
813
|
-
event_bind__bindSourceFile,
|
|
814
|
-
event_check__checkExpression,
|
|
815
|
-
event_check__checkSourceFile,
|
|
816
|
-
event_check__checkVariableDeclaration,
|
|
817
|
-
event_check__checkDeferredNode,
|
|
818
|
-
event_check__checkSourceFileNodes,
|
|
819
|
-
event_checktypes__checkTypeParameterDeferred,
|
|
820
|
-
event_checktypes__getVariancesWorker,
|
|
821
|
-
event_checktypes__structuredTypeRelatedTo,
|
|
822
|
-
...depthLimits,
|
|
823
|
-
event_emit__emit,
|
|
824
|
-
event_emit__emitBuildInfo,
|
|
825
|
-
event_emit__emitDeclarationFileOrBundle,
|
|
826
|
-
event_emit__emitJsFileOrBundle,
|
|
827
|
-
event_emit__transformNodes,
|
|
828
|
-
event_session__cancellationThrown,
|
|
829
|
-
event_session__commandCanceled,
|
|
830
|
-
event_session__commandError,
|
|
831
|
-
event_session__createConfiguredProject,
|
|
832
|
-
event_session__createdDocumentRegistryBucket,
|
|
833
|
-
event_session__documentRegistryBucketOverlap,
|
|
834
|
-
event_session__executeCommand,
|
|
835
|
-
event_session__finishCachingPerDirectoryResolution,
|
|
836
|
-
event_session__getPackageJsonAutoImportProvider,
|
|
837
|
-
event_session__getUnresolvedImports,
|
|
838
|
-
event_session__loadConfiguredProject,
|
|
839
|
-
event_session__regionSemanticCheck,
|
|
840
|
-
event_session__request,
|
|
841
|
-
event_session__response,
|
|
842
|
-
event_session__semanticCheck,
|
|
843
|
-
event_session__stepAction,
|
|
844
|
-
event_session__stepCanceled,
|
|
845
|
-
event_session__stepError,
|
|
846
|
-
event_session__suggestionCheck,
|
|
847
|
-
event_session__syntacticCheck,
|
|
848
|
-
event_session__updateGraph
|
|
849
|
-
],
|
|
850
|
-
{
|
|
851
|
-
// errorMap: (issue, ctx) => ({
|
|
852
|
-
// // prettier-ignore
|
|
853
|
-
// message: issue.code === "invalid_union_discriminator" ?
|
|
854
|
-
// `Invalid discriminator value. Expected ${issue.options.map(opt => `'${String(opt)}'`).join(' | ')}, got '${ctx.data.type}'.`
|
|
855
|
-
// : ctx.defaultError,
|
|
856
|
-
// }),
|
|
857
|
-
}
|
|
858
|
-
);
|
|
859
|
-
var traceJsonSchema = z2.array(traceEvent);
|
|
860
|
-
|
|
861
|
-
// src/tsc-cpuprofile.ts
|
|
862
|
-
var CPU_PROFILE_FILENAME = "tsc.cpuprofile";
|
|
863
|
-
|
|
864
|
-
// src/type-registry.ts
|
|
865
|
-
var ALL_LIFE_IS_SUFFERING_THAT_BASKS_IN_NOTHINGNESS___ALL_LIFE_IS_TEMPORARY___WHAT_LASTS_IS_CONSCIOUSNESS = [{ id: 0, recursionId: -1, flags: [] }];
|
|
866
|
-
var createTypeRegistry = (typesJson) => {
|
|
867
|
-
return ALL_LIFE_IS_SUFFERING_THAT_BASKS_IN_NOTHINGNESS___ALL_LIFE_IS_TEMPORARY___WHAT_LASTS_IS_CONSCIOUSNESS.concat(
|
|
868
|
-
typesJson
|
|
869
|
-
);
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
// src/types-json.ts
|
|
873
|
-
import { z as z3 } from "zod/v4";
|
|
874
|
-
var TYPES_JSON_FILENAME = "types.json";
|
|
875
|
-
var flag = z3.enum([
|
|
876
|
-
"Any",
|
|
877
|
-
"Unknown",
|
|
878
|
-
"String",
|
|
879
|
-
"Number",
|
|
880
|
-
"Boolean",
|
|
881
|
-
"Enum",
|
|
882
|
-
"BigInt",
|
|
883
|
-
"StringLiteral",
|
|
884
|
-
"NumberLiteral",
|
|
885
|
-
"BooleanLiteral",
|
|
886
|
-
"EnumLiteral",
|
|
887
|
-
"BigIntLiteral",
|
|
888
|
-
"ESSymbol",
|
|
889
|
-
"UniqueESSymbol",
|
|
890
|
-
"Void",
|
|
891
|
-
"Undefined",
|
|
892
|
-
"Null",
|
|
893
|
-
"Never",
|
|
894
|
-
"TypeParameter",
|
|
895
|
-
"Object",
|
|
896
|
-
"Union",
|
|
897
|
-
"Intersection",
|
|
898
|
-
"Index",
|
|
899
|
-
"IndexedAccess",
|
|
900
|
-
"Conditional",
|
|
901
|
-
"Substitution",
|
|
902
|
-
"NonPrimitive",
|
|
903
|
-
"TemplateLiteral",
|
|
904
|
-
"StringMapping",
|
|
905
|
-
"Reserved1",
|
|
906
|
-
"Reserved2",
|
|
907
|
-
"AnyOrUnknown",
|
|
908
|
-
"Nullable",
|
|
909
|
-
"Literal",
|
|
910
|
-
"Unit",
|
|
911
|
-
"Freshable",
|
|
912
|
-
"StringOrNumberLiteral",
|
|
913
|
-
"StringOrNumberLiteralOrUnique",
|
|
914
|
-
"DefinitelyFalsy",
|
|
915
|
-
"PossiblyFalsy",
|
|
916
|
-
"Intrinsic",
|
|
917
|
-
"StringLike",
|
|
918
|
-
"NumberLike",
|
|
919
|
-
"BigIntLike",
|
|
920
|
-
"BooleanLike",
|
|
921
|
-
"EnumLike",
|
|
922
|
-
"ESSymbolLike",
|
|
923
|
-
"VoidLike",
|
|
924
|
-
"Primitive",
|
|
925
|
-
"DefinitelyNonNullable",
|
|
926
|
-
"DisjointDomains",
|
|
927
|
-
"UnionOrIntersection",
|
|
928
|
-
"StructuredType",
|
|
929
|
-
"TypeVariable",
|
|
930
|
-
"InstantiableNonPrimitive",
|
|
931
|
-
"InstantiablePrimitive",
|
|
932
|
-
"Instantiable",
|
|
933
|
-
"StructuredOrInstantiable",
|
|
934
|
-
"ObjectFlagsType",
|
|
935
|
-
"Simplifiable",
|
|
936
|
-
"Singleton",
|
|
937
|
-
"Narrowable",
|
|
938
|
-
"IncludesMask",
|
|
939
|
-
"IncludesMissingType",
|
|
940
|
-
"IncludesNonWideningType",
|
|
941
|
-
"IncludesWildcard",
|
|
942
|
-
"IncludesEmptyObject",
|
|
943
|
-
"IncludesInstantiable",
|
|
944
|
-
"IncludesConstrainedTypeVariable",
|
|
945
|
-
"IncludesError",
|
|
946
|
-
"NotPrimitiveUnion"
|
|
947
|
-
]);
|
|
948
|
-
var resolvedType = z3.object({
|
|
949
|
-
id: typeId,
|
|
950
|
-
flags: z3.array(flag),
|
|
951
|
-
recursionId: z3.number().optional(),
|
|
952
|
-
intrinsicName: z3.enum([
|
|
953
|
-
"any",
|
|
954
|
-
"error",
|
|
955
|
-
"unresolved",
|
|
956
|
-
"unknown",
|
|
957
|
-
"true",
|
|
958
|
-
"false",
|
|
959
|
-
"never",
|
|
960
|
-
"void",
|
|
961
|
-
"symbol",
|
|
962
|
-
"bigint",
|
|
963
|
-
"null",
|
|
964
|
-
"undefined",
|
|
965
|
-
"intrinsic",
|
|
966
|
-
"object",
|
|
967
|
-
"boolean",
|
|
968
|
-
"number",
|
|
969
|
-
"string"
|
|
970
|
-
]).optional(),
|
|
971
|
-
firstDeclaration: location.optional(),
|
|
972
|
-
referenceLocation: location.optional(),
|
|
973
|
-
destructuringPattern: location.optional(),
|
|
974
|
-
// TODO, awards for all of these
|
|
975
|
-
typeArguments: z3.array(typeId).optional(),
|
|
976
|
-
unionTypes: z3.array(typeId).optional(),
|
|
977
|
-
intersectionTypes: z3.array(typeId).optional(),
|
|
978
|
-
aliasTypeArguments: z3.array(typeId).optional(),
|
|
979
|
-
instantiatedType: typeId.optional(),
|
|
980
|
-
substitutionBaseType: typeId.optional(),
|
|
981
|
-
constraintType: typeId.optional(),
|
|
982
|
-
indexedAccessObjectType: typeId.optional(),
|
|
983
|
-
indexedAccessIndexType: typeId.optional(),
|
|
984
|
-
conditionalCheckType: typeId.optional(),
|
|
985
|
-
conditionalExtendsType: typeId.optional(),
|
|
986
|
-
conditionalTrueType: typeId.optional(),
|
|
987
|
-
conditionalFalseType: typeId.optional(),
|
|
988
|
-
keyofType: typeId.optional(),
|
|
989
|
-
aliasType: typeId.optional(),
|
|
990
|
-
evolvingArrayElementType: typeId.optional(),
|
|
991
|
-
evolvingArrayFinalType: typeId.optional(),
|
|
992
|
-
reverseMappedSourceType: typeId.optional(),
|
|
993
|
-
reverseMappedMappedType: typeId.optional(),
|
|
994
|
-
reverseMappedConstraintType: typeId.optional(),
|
|
995
|
-
isTuple: z3.literal(true).optional(),
|
|
996
|
-
symbolName: z3.string().optional(),
|
|
997
|
-
display: z3.string().optional()
|
|
998
|
-
}).strict();
|
|
999
|
-
var typesJsonSchema = z3.array(resolvedType);
|
|
1000
|
-
export {
|
|
1001
|
-
CPU_PROFILE_FILENAME,
|
|
1002
|
-
TRACE_JSON_FILENAME,
|
|
1003
|
-
TYPES_JSON_FILENAME,
|
|
1004
|
-
createTypeRegistry,
|
|
1005
|
-
depthLimits,
|
|
1006
|
-
eventPhase,
|
|
1007
|
-
event_checktypes__checkCrossProductUnion_DepthLimit,
|
|
1008
|
-
event_checktypes__checkTypeRelatedTo_DepthLimit,
|
|
1009
|
-
event_checktypes__getTypeAtFlowNode_DepthLimit,
|
|
1010
|
-
event_checktypes__instantiateType_DepthLimit,
|
|
1011
|
-
event_checktypes__recursiveTypeRelatedTo_DepthLimit,
|
|
1012
|
-
event_checktypes__removeSubtypes_DepthLimit,
|
|
1013
|
-
event_checktypes__traceUnionsOrIntersectionsTooLarge_DepthLimit,
|
|
1014
|
-
event_checktypes__typeRelatedToDiscriminatedType_DepthLimit,
|
|
1015
|
-
extractPackageName,
|
|
1016
|
-
packageNameRegex,
|
|
1017
|
-
relativizePath,
|
|
1018
|
-
resolvedType,
|
|
1019
|
-
traceEvent,
|
|
1020
|
-
traceJsonSchema,
|
|
1021
|
-
typesJsonSchema
|
|
1022
|
-
};
|
|
1023
|
-
//# sourceMappingURL=index.js.map
|