@ttsc/graph 0.22.0 → 0.24.0

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.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/lib/index.js +36 -0
  3. package/lib/index.js.map +1 -1
  4. package/lib/model/TtscGraphMemory.d.ts +1 -1
  5. package/lib/model/TtscGraphMemory.js +16 -13
  6. package/lib/model/TtscGraphMemory.js.map +1 -1
  7. package/lib/model/TtscGraphSession.d.ts +2 -0
  8. package/lib/model/TtscGraphSession.js +414 -220
  9. package/lib/model/TtscGraphSession.js.map +1 -1
  10. package/lib/model/TtscGraphShardStore.d.ts +16 -0
  11. package/lib/model/TtscGraphShardStore.js +272 -0
  12. package/lib/model/TtscGraphShardStore.js.map +1 -0
  13. package/lib/model/loadGraph.d.ts +15 -0
  14. package/lib/model/loadGraph.js +574 -574
  15. package/lib/model/loadGraph.js.map +1 -1
  16. package/lib/reduce.js +27 -15
  17. package/lib/reduce.js.map +1 -1
  18. package/lib/server/runDetails.js +4 -9
  19. package/lib/server/runDetails.js.map +1 -1
  20. package/lib/server/runEntrypoints.js +4 -7
  21. package/lib/server/runEntrypoints.js.map +1 -1
  22. package/lib/server/runLookup.js +1 -1
  23. package/lib/server/runLookup.js.map +1 -1
  24. package/lib/server/runOverview.js +3 -3
  25. package/lib/server/runOverview.js.map +1 -1
  26. package/lib/server/runTour.js +7 -11
  27. package/lib/server/runTour.js.map +1 -1
  28. package/lib/server/runTrace.d.ts +4 -5
  29. package/lib/server/runTrace.js +10 -19
  30. package/lib/server/runTrace.js.map +1 -1
  31. package/lib/structures/ITtscGraphDump.d.ts +8 -2
  32. package/lib/structures/ITtscGraphNode.d.ts +1 -2
  33. package/lib/structures/ITtscGraphSnapshot.d.ts +37 -1
  34. package/lib/structures/TtscGraphDumpEdgeKind.d.ts +2 -0
  35. package/lib/structures/TtscGraphDumpEdgeKind.js +3 -0
  36. package/lib/structures/TtscGraphDumpEdgeKind.js.map +1 -0
  37. package/lib/structures/TtscGraphDumpNodeKind.d.ts +2 -0
  38. package/lib/structures/TtscGraphDumpNodeKind.js +3 -0
  39. package/lib/structures/TtscGraphDumpNodeKind.js.map +1 -0
  40. package/lib/structures/TtscGraphEdgeKind.d.ts +8 -6
  41. package/lib/structures/TtscGraphNodeKind.d.ts +5 -6
  42. package/lib/structures/TtscGraphNodeModifier.d.ts +1 -1
  43. package/lib/structures/index.d.ts +2 -0
  44. package/lib/structures/index.js +2 -0
  45. package/lib/structures/index.js.map +1 -1
  46. package/lib/view.js +26 -3
  47. package/lib/view.js.map +1 -1
  48. package/package.json +3 -3
  49. package/src/index.ts +40 -0
  50. package/src/model/TtscGraphMemory.ts +10 -8
  51. package/src/model/TtscGraphSession.ts +64 -16
  52. package/src/model/TtscGraphShardStore.ts +371 -0
  53. package/src/model/loadGraph.ts +11 -2
  54. package/src/reduce.ts +37 -18
  55. package/src/server/runDetails.ts +5 -10
  56. package/src/server/runEntrypoints.ts +4 -7
  57. package/src/server/runLookup.ts +1 -1
  58. package/src/server/runOverview.ts +3 -3
  59. package/src/server/runTour.ts +8 -14
  60. package/src/server/runTrace.ts +10 -19
  61. package/src/structures/ITtscGraphDump.ts +10 -2
  62. package/src/structures/ITtscGraphNode.ts +1 -2
  63. package/src/structures/ITtscGraphSnapshot.ts +42 -1
  64. package/src/structures/TtscGraphDumpEdgeKind.ts +11 -0
  65. package/src/structures/TtscGraphDumpNodeKind.ts +10 -0
  66. package/src/structures/TtscGraphEdgeKind.ts +8 -9
  67. package/src/structures/TtscGraphNodeKind.ts +5 -11
  68. package/src/structures/TtscGraphNodeModifier.ts +1 -2
  69. package/src/structures/index.ts +2 -0
  70. package/src/view.ts +29 -5
@@ -38,6 +38,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DUMP_SCHEMA_VERSION = void 0;
40
40
  exports.loadGraph = loadGraph;
41
+ exports.parseDump = parseDump;
41
42
  const _assertGuard_1 = __importStar(require("typia/lib/internal/_assertGuard"));
42
43
  const node_child_process_1 = require("node:child_process");
43
44
  const typia_1 = __importDefault(require("typia"));
@@ -125,579 +126,578 @@ function parseDump(json) {
125
126
  "Install a matching `ttsc` (the binary resolves from the target " +
126
127
  "project, or from TTSC_GRAPH_BINARY).");
127
128
  }
128
- return (() => {
129
- const _ip0 = input => "string" === typeof input["file"];
130
- const _ip1 = input => "string" === typeof input["id"];
131
- const _ip2 = input => true === _iv0.has(input["kind"]);
132
- const _iv0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
133
- const _ip3 = input => "string" === typeof input["name"];
134
- const _ip4 = input => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"];
135
- const _ip5 = input => "boolean" === typeof input["external"];
136
- const _ip6 = input => undefined === input["ignored"] || "boolean" === typeof input["ignored"];
137
- const _ip7 = input => undefined === input["exported"] || "boolean" === typeof input["exported"];
138
- const _ip8 = input => undefined === input["closure"] || "boolean" === typeof input["closure"];
139
- const _ip9 = input => undefined === input["modifiers"] || Array.isArray(input["modifiers"]) && input["modifiers"].every(elem => true === _iv1.has(elem));
140
- const _iv1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
141
- const _ip10 = input => undefined === input["literals"] || Array.isArray(input["literals"]) && input["literals"].every(elem => "string" === typeof elem);
142
- const _ip11 = input => undefined === input["enumMembers"] || Array.isArray(input["enumMembers"]) && input["enumMembers"].every(elem => "object" === typeof elem && null !== elem && _io9(elem));
143
- const _ip12 = input => undefined === input["objectMembers"] || Array.isArray(input["objectMembers"]) && input["objectMembers"].every(elem => "object" === typeof elem && null !== elem && _io10(elem));
144
- const _ip13 = input => undefined === input["decorators"] || Array.isArray(input["decorators"]) && input["decorators"].every(elem => "object" === typeof elem && null !== elem && _io11(elem));
145
- const _ip14 = input => undefined === input["signature"] || "string" === typeof input["signature"];
146
- const _ip15 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io13(input["evidence"]);
147
- const _ip16 = input => undefined === input["implementation"] || "object" === typeof input["implementation"] && null !== input["implementation"] && _io13(input["implementation"]);
148
- const _iv2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
149
- const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
150
- method: "typia.assert",
151
- path: _path + ".file",
152
- expected: "string",
153
- value: input["file"]
154
- }, _errorFactory);
155
- const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
156
- method: "typia.assert",
157
- path: _path + ".id",
158
- expected: "string",
159
- value: input["id"]
160
- }, _errorFactory);
161
- const _ap2 = (input, _path, _exceptionable = true) => true === _av0.has(input["kind"]) || _assertGuard_1._assertGuard(_exceptionable, {
162
- method: "typia.assert",
163
- path: _path + ".kind",
164
- expected: _ae0,
165
- value: input["kind"]
166
- }, _errorFactory);
167
- const _av0 = new Set(["class", "enum", "external_symbol", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
168
- const _ae0 = "(\"class\" | \"enum\" | \"external_symbol\" | \"file\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"namespace\" | \"package\" | \"parameter\" | \"property\" | \"type\" | \"variable\")";
169
- const _ap3 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
170
- method: "typia.assert",
171
- path: _path + ".name",
172
- expected: "string",
173
- value: input["name"]
174
- }, _errorFactory);
175
- const _ap4 = (input, _path, _exceptionable = true) => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"] || _assertGuard_1._assertGuard(_exceptionable, {
176
- method: "typia.assert",
177
- path: _path + ".qualifiedName",
178
- expected: "(string | undefined)",
179
- value: input["qualifiedName"]
180
- }, _errorFactory);
181
- const _ap5 = (input, _path, _exceptionable = true) => "boolean" === typeof input["external"] || _assertGuard_1._assertGuard(_exceptionable, {
182
- method: "typia.assert",
183
- path: _path + ".external",
184
- expected: "boolean",
185
- value: input["external"]
186
- }, _errorFactory);
187
- const _ap6 = (input, _path, _exceptionable = true) => undefined === input["ignored"] || "boolean" === typeof input["ignored"] || _assertGuard_1._assertGuard(_exceptionable, {
188
- method: "typia.assert",
189
- path: _path + ".ignored",
190
- expected: "(boolean | undefined)",
191
- value: input["ignored"]
192
- }, _errorFactory);
193
- const _ap7 = (input, _path, _exceptionable = true) => undefined === input["exported"] || "boolean" === typeof input["exported"] || _assertGuard_1._assertGuard(_exceptionable, {
194
- method: "typia.assert",
195
- path: _path + ".exported",
196
- expected: "(boolean | undefined)",
197
- value: input["exported"]
198
- }, _errorFactory);
199
- const _ap8 = (input, _path, _exceptionable = true) => undefined === input["closure"] || "boolean" === typeof input["closure"] || _assertGuard_1._assertGuard(_exceptionable, {
200
- method: "typia.assert",
201
- path: _path + ".closure",
202
- expected: "(boolean | undefined)",
203
- value: input["closure"]
204
- }, _errorFactory);
205
- const _ap9 = (input, _path, _exceptionable = true) => undefined === input["modifiers"] || (Array.isArray(input["modifiers"]) || _assertGuard_1._assertGuard(_exceptionable, {
206
- method: "typia.assert",
207
- path: _path + ".modifiers",
208
- expected: "(Array<TtscGraphNodeModifier> | undefined)",
209
- value: input["modifiers"]
210
- }, _errorFactory)) && input["modifiers"].every((elem, _index21) => true === _av1.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
211
- method: "typia.assert",
212
- path: _path + ".modifiers[" + _index21 + "]",
213
- expected: _ae1,
214
- value: elem
215
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
216
- method: "typia.assert",
217
- path: _path + ".modifiers",
218
- expected: "(Array<TtscGraphNodeModifier> | undefined)",
219
- value: input["modifiers"]
220
- }, _errorFactory);
221
- const _av1 = new Set(["abstract", "async", "const", "declare", "default", "export", "optional", "private", "protected", "public", "readonly", "static"]);
222
- const _ae1 = "(\"abstract\" | \"async\" | \"const\" | \"declare\" | \"default\" | \"export\" | \"optional\" | \"private\" | \"protected\" | \"public\" | \"readonly\" | \"static\")";
223
- const _ap10 = (input, _path, _exceptionable = true) => undefined === input["literals"] || (Array.isArray(input["literals"]) || _assertGuard_1._assertGuard(_exceptionable, {
224
- method: "typia.assert",
225
- path: _path + ".literals",
226
- expected: "(Array<string> | undefined)",
227
- value: input["literals"]
228
- }, _errorFactory)) && input["literals"].every((elem, _index22) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
229
- method: "typia.assert",
230
- path: _path + ".literals[" + _index22 + "]",
231
- expected: "string",
232
- value: elem
233
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
234
- method: "typia.assert",
235
- path: _path + ".literals",
236
- expected: "(Array<string> | undefined)",
237
- value: input["literals"]
238
- }, _errorFactory);
239
- const _ap11 = (input, _path, _exceptionable = true) => undefined === input["enumMembers"] || (Array.isArray(input["enumMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
240
- method: "typia.assert",
241
- path: _path + ".enumMembers",
242
- expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
243
- value: input["enumMembers"]
244
- }, _errorFactory)) && input["enumMembers"].every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
245
- method: "typia.assert",
246
- path: _path + ".enumMembers[" + _index23 + "]",
247
- expected: "ITtscGraphNode.IEnumMember",
248
- value: elem
249
- }, _errorFactory)) && _ao9(elem, _path + ".enumMembers[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
250
- method: "typia.assert",
251
- path: _path + ".enumMembers[" + _index23 + "]",
252
- expected: "ITtscGraphNode.IEnumMember",
253
- value: elem
254
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
255
- method: "typia.assert",
256
- path: _path + ".enumMembers",
257
- expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
258
- value: input["enumMembers"]
259
- }, _errorFactory);
260
- const _ap12 = (input, _path, _exceptionable = true) => undefined === input["objectMembers"] || (Array.isArray(input["objectMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
261
- method: "typia.assert",
262
- path: _path + ".objectMembers",
263
- expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
264
- value: input["objectMembers"]
265
- }, _errorFactory)) && input["objectMembers"].every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
266
- method: "typia.assert",
267
- path: _path + ".objectMembers[" + _index24 + "]",
268
- expected: "ITtscGraphNode.IObjectMember",
269
- value: elem
270
- }, _errorFactory)) && _ao10(elem, _path + ".objectMembers[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
271
- method: "typia.assert",
272
- path: _path + ".objectMembers[" + _index24 + "]",
273
- expected: "ITtscGraphNode.IObjectMember",
274
- value: elem
275
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
276
- method: "typia.assert",
277
- path: _path + ".objectMembers",
278
- expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
279
- value: input["objectMembers"]
280
- }, _errorFactory);
281
- const _ap13 = (input, _path, _exceptionable = true) => undefined === input["decorators"] || (Array.isArray(input["decorators"]) || _assertGuard_1._assertGuard(_exceptionable, {
282
- method: "typia.assert",
283
- path: _path + ".decorators",
284
- expected: "(Array<ITtscGraphDecorator> | undefined)",
285
- value: input["decorators"]
286
- }, _errorFactory)) && input["decorators"].every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
287
- method: "typia.assert",
288
- path: _path + ".decorators[" + _index25 + "]",
289
- expected: "ITtscGraphDecorator",
290
- value: elem
291
- }, _errorFactory)) && _ao11(elem, _path + ".decorators[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
292
- method: "typia.assert",
293
- path: _path + ".decorators[" + _index25 + "]",
294
- expected: "ITtscGraphDecorator",
295
- value: elem
296
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
297
- method: "typia.assert",
298
- path: _path + ".decorators",
299
- expected: "(Array<ITtscGraphDecorator> | undefined)",
300
- value: input["decorators"]
301
- }, _errorFactory);
302
- const _ap14 = (input, _path, _exceptionable = true) => undefined === input["signature"] || "string" === typeof input["signature"] || _assertGuard_1._assertGuard(_exceptionable, {
303
- method: "typia.assert",
304
- path: _path + ".signature",
305
- expected: "(string | undefined)",
306
- value: input["signature"]
307
- }, _errorFactory);
308
- const _ap15 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _assertGuard_1._assertGuard(_exceptionable, {
309
- method: "typia.assert",
310
- path: _path + ".evidence",
311
- expected: "(ITtscGraphSpan | undefined)",
312
- value: input["evidence"]
313
- }, _errorFactory)) && _ao13(input["evidence"], _path + ".evidence", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
314
- method: "typia.assert",
315
- path: _path + ".evidence",
316
- expected: "(ITtscGraphSpan | undefined)",
317
- value: input["evidence"]
318
- }, _errorFactory);
319
- const _ap16 = (input, _path, _exceptionable = true) => undefined === input["implementation"] || ("object" === typeof input["implementation"] && null !== input["implementation"] || _assertGuard_1._assertGuard(_exceptionable, {
320
- method: "typia.assert",
321
- path: _path + ".implementation",
322
- expected: "(ITtscGraphSpan | undefined)",
323
- value: input["implementation"]
324
- }, _errorFactory)) && _ao13(input["implementation"], _path + ".implementation", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
325
- method: "typia.assert",
326
- path: _path + ".implementation",
327
- expected: "(ITtscGraphSpan | undefined)",
328
- value: input["implementation"]
329
- }, _errorFactory);
330
- const _av2 = new Set(["accesses", "calls", "contains", "decorates", "dispatches", "exports", "extends", "implements", "imports", "instantiates", "overrides", "renders", "tests", "type_ref"]);
331
- const _ae2 = "(\"accesses\" | \"calls\" | \"contains\" | \"decorates\" | \"dispatches\" | \"exports\" | \"extends\" | \"implements\" | \"imports\" | \"instantiates\" | \"overrides\" | \"renders\" | \"tests\" | \"type_ref\")";
332
- const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.project || _assertGuard_1._assertGuard(_exceptionable, {
333
- method: "typia.assert",
334
- path: _path + ".project",
335
- expected: "string",
336
- value: input.project
337
- }, _errorFactory)) && ("string" === typeof input.tsconfig || _assertGuard_1._assertGuard(_exceptionable, {
338
- method: "typia.assert",
339
- path: _path + ".tsconfig",
340
- expected: "string",
341
- value: input.tsconfig
342
- }, _errorFactory)) && (("object" === typeof input.provenance && null !== input.provenance || _assertGuard_1._assertGuard(_exceptionable, {
343
- method: "typia.assert",
344
- path: _path + ".provenance",
345
- expected: "ITtscGraphDump.IProvenance",
346
- value: input.provenance
347
- }, _errorFactory)) && _ao1(input.provenance, _path + ".provenance", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
348
- method: "typia.assert",
349
- path: _path + ".provenance",
350
- expected: "ITtscGraphDump.IProvenance",
351
- value: input.provenance
352
- }, _errorFactory)) && ((Array.isArray(input.diagnostics) || _assertGuard_1._assertGuard(_exceptionable, {
353
- method: "typia.assert",
354
- path: _path + ".diagnostics",
355
- expected: "Array<ITtscGraphDump.IDiagnostic>",
356
- value: input.diagnostics
357
- }, _errorFactory)) && input.diagnostics.every((elem, _index14) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
358
- method: "typia.assert",
359
- path: _path + ".diagnostics[" + _index14 + "]",
360
- expected: "ITtscGraphDump.IDiagnostic",
361
- value: elem
362
- }, _errorFactory)) && _ao7(elem, _path + ".diagnostics[" + _index14 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
363
- method: "typia.assert",
364
- path: _path + ".diagnostics[" + _index14 + "]",
365
- expected: "ITtscGraphDump.IDiagnostic",
366
- value: elem
367
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
368
- method: "typia.assert",
369
- path: _path + ".diagnostics",
370
- expected: "Array<ITtscGraphDump.IDiagnostic>",
371
- value: input.diagnostics
372
- }, _errorFactory)) && ((Array.isArray(input.nodes) || _assertGuard_1._assertGuard(_exceptionable, {
373
- method: "typia.assert",
374
- path: _path + ".nodes",
375
- expected: "Array<ITtscGraphDump.INode>",
376
- value: input.nodes
377
- }, _errorFactory)) && input.nodes.every((elem, _index15) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
378
- method: "typia.assert",
379
- path: _path + ".nodes[" + _index15 + "]",
380
- expected: "ITtscGraphDump.INode",
381
- value: elem
382
- }, _errorFactory)) && _ao8(elem, _path + ".nodes[" + _index15 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
383
- method: "typia.assert",
384
- path: _path + ".nodes[" + _index15 + "]",
385
- expected: "ITtscGraphDump.INode",
386
- value: elem
387
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
388
- method: "typia.assert",
389
- path: _path + ".nodes",
390
- expected: "Array<ITtscGraphDump.INode>",
391
- value: input.nodes
392
- }, _errorFactory)) && ((Array.isArray(input.edges) || _assertGuard_1._assertGuard(_exceptionable, {
393
- method: "typia.assert",
394
- path: _path + ".edges",
395
- expected: "Array<ITtscGraphDump.IEdge>",
396
- value: input.edges
397
- }, _errorFactory)) && input.edges.every((elem, _index16) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
398
- method: "typia.assert",
399
- path: _path + ".edges[" + _index16 + "]",
400
- expected: "ITtscGraphDump.IEdge",
401
- value: elem
402
- }, _errorFactory)) && _ao14(elem, _path + ".edges[" + _index16 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
403
- method: "typia.assert",
404
- path: _path + ".edges[" + _index16 + "]",
405
- expected: "ITtscGraphDump.IEdge",
406
- value: elem
407
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
408
- method: "typia.assert",
409
- path: _path + ".edges",
410
- expected: "Array<ITtscGraphDump.IEdge>",
411
- value: input.edges
412
- }, _errorFactory));
413
- const _ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.schemaVersion || _assertGuard_1._assertGuard(_exceptionable, {
414
- method: "typia.assert",
415
- path: _path + ".schemaVersion",
416
- expected: "number",
417
- value: input.schemaVersion
418
- }, _errorFactory)) && ((Array.isArray(input.capabilities) || _assertGuard_1._assertGuard(_exceptionable, {
419
- method: "typia.assert",
420
- path: _path + ".capabilities",
421
- expected: "Array<string>",
422
- value: input.capabilities
423
- }, _errorFactory)) && input.capabilities.every((elem, _index17) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
424
- method: "typia.assert",
425
- path: _path + ".capabilities[" + _index17 + "]",
426
- expected: "string",
427
- value: elem
428
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
429
- method: "typia.assert",
430
- path: _path + ".capabilities",
431
- expected: "Array<string>",
432
- value: input.capabilities
433
- }, _errorFactory)) && (("object" === typeof input.producer && null !== input.producer || _assertGuard_1._assertGuard(_exceptionable, {
434
- method: "typia.assert",
435
- path: _path + ".producer",
436
- expected: "ITtscGraphDump.IProducer",
437
- value: input.producer
438
- }, _errorFactory)) && _ao2(input.producer, _path + ".producer", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
439
- method: "typia.assert",
440
- path: _path + ".producer",
441
- expected: "ITtscGraphDump.IProducer",
442
- value: input.producer
443
- }, _errorFactory)) && (("object" === typeof input.universe && null !== input.universe || _assertGuard_1._assertGuard(_exceptionable, {
444
- method: "typia.assert",
445
- path: _path + ".universe",
446
- expected: "ITtscGraphDump.IUniverse",
447
- value: input.universe
448
- }, _errorFactory)) && _ao3(input.universe, _path + ".universe", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
449
- method: "typia.assert",
450
- path: _path + ".universe",
451
- expected: "ITtscGraphDump.IUniverse",
452
- value: input.universe
453
- }, _errorFactory)) && ((Array.isArray(input.sources) || _assertGuard_1._assertGuard(_exceptionable, {
454
- method: "typia.assert",
455
- path: _path + ".sources",
456
- expected: "Array<ITtscGraphDump.ISourceDigest>",
457
- value: input.sources
458
- }, _errorFactory)) && input.sources.every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
459
- method: "typia.assert",
460
- path: _path + ".sources[" + _index18 + "]",
461
- expected: "ITtscGraphDump.ISourceDigest",
462
- value: elem
463
- }, _errorFactory)) && _ao6(elem, _path + ".sources[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
464
- method: "typia.assert",
465
- path: _path + ".sources[" + _index18 + "]",
466
- expected: "ITtscGraphDump.ISourceDigest",
467
- value: elem
468
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
469
- method: "typia.assert",
470
- path: _path + ".sources",
471
- expected: "Array<ITtscGraphDump.ISourceDigest>",
472
- value: input.sources
473
- }, _errorFactory));
474
- const _ao10 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ("method" === input.kind || "property" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
475
- method: "typia.assert",
476
- path: _path + ".kind",
477
- expected: "(\"method\" | \"property\")",
478
- value: input.kind
479
- }, _errorFactory)) && (undefined === input.line || "number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
480
- method: "typia.assert",
481
- path: _path + ".line",
482
- expected: "(number | undefined)",
483
- value: input.line
484
- }, _errorFactory)) && _ap14(input, _path, true && _exceptionable);
485
- const _ao11 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
486
- method: "typia.assert",
487
- path: _path + ".arguments",
488
- expected: "Array<ITtscGraphDecorator.IArgument>",
489
- value: input.arguments
490
- }, _errorFactory)) && input.arguments.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
491
- method: "typia.assert",
492
- path: _path + ".arguments[" + _index26 + "]",
493
- expected: "ITtscGraphDecorator.IArgument",
494
- value: elem
495
- }, _errorFactory)) && _ao12(elem, _path + ".arguments[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
496
- method: "typia.assert",
497
- path: _path + ".arguments[" + _index26 + "]",
498
- expected: "ITtscGraphDecorator.IArgument",
499
- value: elem
500
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
501
- method: "typia.assert",
502
- path: _path + ".arguments",
503
- expected: "Array<ITtscGraphDecorator.IArgument>",
504
- value: input.arguments
505
- }, _errorFactory));
506
- const _ao12 = (input, _path, _exceptionable = true) => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal || _assertGuard_1._assertGuard(_exceptionable, {
507
- method: "typia.assert",
508
- path: _path + ".literal",
509
- expected: "(boolean | number | string | undefined)",
510
- value: input.literal
511
- }, _errorFactory);
512
- const _ao13 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || _assertGuard_1._assertGuard(_exceptionable, {
513
- method: "typia.assert",
514
- path: _path + ".file",
515
- expected: "(string | undefined)",
516
- value: input.file
517
- }, _errorFactory)) && ("number" === typeof input.startLine || _assertGuard_1._assertGuard(_exceptionable, {
518
- method: "typia.assert",
519
- path: _path + ".startLine",
520
- expected: "number",
521
- value: input.startLine
522
- }, _errorFactory)) && (undefined === input.startCol || "number" === typeof input.startCol || _assertGuard_1._assertGuard(_exceptionable, {
523
- method: "typia.assert",
524
- path: _path + ".startCol",
525
- expected: "(number | undefined)",
526
- value: input.startCol
527
- }, _errorFactory)) && (undefined === input.endLine || "number" === typeof input.endLine || _assertGuard_1._assertGuard(_exceptionable, {
528
- method: "typia.assert",
529
- path: _path + ".endLine",
530
- expected: "(number | undefined)",
531
- value: input.endLine
532
- }, _errorFactory)) && (undefined === input.endCol || "number" === typeof input.endCol || _assertGuard_1._assertGuard(_exceptionable, {
533
- method: "typia.assert",
534
- path: _path + ".endCol",
535
- expected: "(number | undefined)",
536
- value: input.endCol
537
- }, _errorFactory));
538
- const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.from || _assertGuard_1._assertGuard(_exceptionable, {
539
- method: "typia.assert",
540
- path: _path + ".from",
541
- expected: "string",
542
- value: input.from
543
- }, _errorFactory)) && ("string" === typeof input.to || _assertGuard_1._assertGuard(_exceptionable, {
544
- method: "typia.assert",
545
- path: _path + ".to",
546
- expected: "string",
547
- value: input.to
548
- }, _errorFactory)) && (true === _av2.has(input.kind) || _assertGuard_1._assertGuard(_exceptionable, {
549
- method: "typia.assert",
550
- path: _path + ".kind",
551
- expected: _ae2,
552
- value: input.kind
553
- }, _errorFactory)) && _ap15(input, _path, true && _exceptionable);
554
- const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.tool || _assertGuard_1._assertGuard(_exceptionable, {
555
- method: "typia.assert",
556
- path: _path + ".tool",
557
- expected: "string",
558
- value: input.tool
559
- }, _errorFactory)) && ("string" === typeof input.version || _assertGuard_1._assertGuard(_exceptionable, {
560
- method: "typia.assert",
561
- path: _path + ".version",
562
- expected: "string",
563
- value: input.version
564
- }, _errorFactory)) && ("string" === typeof input.typescript || _assertGuard_1._assertGuard(_exceptionable, {
565
- method: "typia.assert",
566
- path: _path + ".typescript",
567
- expected: "string",
568
- value: input.typescript
569
- }, _errorFactory));
570
- const _ao3 = (input, _path, _exceptionable = true) => ((Array.isArray(input.configs) || _assertGuard_1._assertGuard(_exceptionable, {
571
- method: "typia.assert",
572
- path: _path + ".configs",
573
- expected: "Array<ITtscGraphDump.IFileDigest>",
574
- value: input.configs
575
- }, _errorFactory)) && input.configs.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
576
- method: "typia.assert",
577
- path: _path + ".configs[" + _index19 + "]",
578
- expected: "ITtscGraphDump.IFileDigest",
579
- value: elem
580
- }, _errorFactory)) && _ao4(elem, _path + ".configs[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
581
- method: "typia.assert",
582
- path: _path + ".configs[" + _index19 + "]",
583
- expected: "ITtscGraphDump.IFileDigest",
584
- value: elem
585
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
586
- method: "typia.assert",
587
- path: _path + ".configs",
588
- expected: "Array<ITtscGraphDump.IFileDigest>",
589
- value: input.configs
590
- }, _errorFactory)) && ((Array.isArray(input.roots) || _assertGuard_1._assertGuard(_exceptionable, {
591
- method: "typia.assert",
592
- path: _path + ".roots",
593
- expected: "Array<ITtscGraphDump.IRootFile>",
594
- value: input.roots
595
- }, _errorFactory)) && input.roots.every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
596
- method: "typia.assert",
597
- path: _path + ".roots[" + _index20 + "]",
598
- expected: "ITtscGraphDump.IRootFile",
599
- value: elem
600
- }, _errorFactory)) && _ao5(elem, _path + ".roots[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
601
- method: "typia.assert",
602
- path: _path + ".roots[" + _index20 + "]",
603
- expected: "ITtscGraphDump.IRootFile",
604
- value: elem
605
- }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
606
- method: "typia.assert",
607
- path: _path + ".roots",
608
- expected: "Array<ITtscGraphDump.IRootFile>",
609
- value: input.roots
610
- }, _errorFactory));
611
- const _ao4 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.digest || _assertGuard_1._assertGuard(_exceptionable, {
612
- method: "typia.assert",
613
- path: _path + ".digest",
614
- expected: "string",
615
- value: input.digest
616
- }, _errorFactory));
617
- const _ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.config || _assertGuard_1._assertGuard(_exceptionable, {
618
- method: "typia.assert",
619
- path: _path + ".config",
620
- expected: "string",
621
- value: input.config
622
- }, _errorFactory)) && _ap0(input, _path, true && _exceptionable);
623
- const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.checkerDigest || _assertGuard_1._assertGuard(_exceptionable, {
624
- method: "typia.assert",
625
- path: _path + ".checkerDigest",
626
- expected: "string",
627
- value: input.checkerDigest
628
- }, _errorFactory)) && ("string" === typeof input.diskDigest || _assertGuard_1._assertGuard(_exceptionable, {
629
- method: "typia.assert",
630
- path: _path + ".diskDigest",
631
- expected: "string",
632
- value: input.diskDigest
633
- }, _errorFactory));
634
- const _ao7 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
635
- method: "typia.assert",
636
- path: _path + ".line",
637
- expected: "number",
638
- value: input.line
639
- }, _errorFactory)) && ("number" === typeof input.column || _assertGuard_1._assertGuard(_exceptionable, {
640
- method: "typia.assert",
641
- path: _path + ".column",
642
- expected: "number",
643
- value: input.column
644
- }, _errorFactory)) && ("number" === typeof input.code || _assertGuard_1._assertGuard(_exceptionable, {
645
- method: "typia.assert",
646
- path: _path + ".code",
647
- expected: "number",
648
- value: input.code
649
- }, _errorFactory)) && ("error" === input.category || "warning" === input.category || _assertGuard_1._assertGuard(_exceptionable, {
650
- method: "typia.assert",
651
- path: _path + ".category",
652
- expected: "(\"error\" | \"warning\")",
653
- value: input.category
654
- }, _errorFactory)) && ("string" === typeof input.message || _assertGuard_1._assertGuard(_exceptionable, {
655
- method: "typia.assert",
656
- path: _path + ".message",
657
- expected: "string",
658
- value: input.message
659
- }, _errorFactory));
660
- const _ao8 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap4(input, _path, true && _exceptionable) && _ap0(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap6(input, _path, true && _exceptionable) && _ap7(input, _path, true && _exceptionable) && _ap8(input, _path, true && _exceptionable) && _ap9(input, _path, true && _exceptionable) && _ap10(input, _path, true && _exceptionable) && _ap11(input, _path, true && _exceptionable) && _ap12(input, _path, true && _exceptionable) && _ap13(input, _path, true && _exceptionable) && _ap14(input, _path, true && _exceptionable) && _ap15(input, _path, true && _exceptionable) && _ap16(input, _path, true && _exceptionable);
661
- const _ao9 = (input, _path, _exceptionable = true) => _ap3(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
662
- method: "typia.assert",
663
- path: _path + ".value",
664
- expected: "(string | undefined)",
665
- value: input.value
666
- }, _errorFactory));
667
- const _io0 = input => "string" === typeof input.project && "string" === typeof input.tsconfig && ("object" === typeof input.provenance && null !== input.provenance && _io1(input.provenance)) && (Array.isArray(input.diagnostics) && input.diagnostics.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io14(elem)));
668
- const _io1 = input => "number" === typeof input.schemaVersion && (Array.isArray(input.capabilities) && input.capabilities.every(elem => "string" === typeof elem)) && ("object" === typeof input.producer && null !== input.producer && _io2(input.producer)) && ("object" === typeof input.universe && null !== input.universe && _io3(input.universe)) && (Array.isArray(input.sources) && input.sources.every(elem => "object" === typeof elem && null !== elem && _io6(elem)));
669
- const _io10 = input => _ip3(input) && ("method" === input.kind || "property" === input.kind) && (undefined === input.line || "number" === typeof input.line) && _ip14(input);
670
- const _io11 = input => _ip3(input) && (Array.isArray(input.arguments) && input.arguments.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)));
671
- const _io12 = input => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal;
672
- const _io13 = input => (undefined === input.file || "string" === typeof input.file) && "number" === typeof input.startLine && (undefined === input.startCol || "number" === typeof input.startCol) && (undefined === input.endLine || "number" === typeof input.endLine) && (undefined === input.endCol || "number" === typeof input.endCol);
673
- const _io14 = input => "string" === typeof input.from && "string" === typeof input.to && true === _iv2.has(input.kind) && _ip15(input);
674
- const _io2 = input => "string" === typeof input.tool && "string" === typeof input.version && "string" === typeof input.typescript;
675
- const _io3 = input => Array.isArray(input.configs) && input.configs.every(elem => "object" === typeof elem && null !== elem && _io4(elem)) && (Array.isArray(input.roots) && input.roots.every(elem => "object" === typeof elem && null !== elem && _io5(elem)));
676
- const _io4 = input => _ip0(input) && "string" === typeof input.digest;
677
- const _io5 = input => "string" === typeof input.config && _ip0(input);
678
- const _io6 = input => _ip0(input) && "string" === typeof input.checkerDigest && "string" === typeof input.diskDigest;
679
- const _io7 = input => _ip0(input) && "number" === typeof input.line && "number" === typeof input.column && "number" === typeof input.code && ("error" === input.category || "warning" === input.category) && "string" === typeof input.message;
680
- const _io8 = input => _ip1(input) && _ip2(input) && _ip3(input) && _ip4(input) && _ip0(input) && _ip5(input) && _ip6(input) && _ip7(input) && _ip8(input) && _ip9(input) && _ip10(input) && _ip11(input) && _ip12(input) && _ip13(input) && _ip14(input) && _ip15(input) && _ip16(input);
681
- const _io9 = input => _ip3(input) && (undefined === input.value || "string" === typeof input.value);
682
- const __is = input => "object" === typeof input && null !== input && _io0(input);
683
- let _errorFactory;
684
- return (input, errorFactory) => {
685
- if (false === __is(input)) {
686
- _errorFactory = errorFactory;
687
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
688
- method: "typia.assert",
689
- path: _path + "",
690
- expected: "ITtscGraphDump",
691
- value: input
692
- }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
693
- method: "typia.assert",
694
- path: _path + "",
695
- expected: "ITtscGraphDump",
696
- value: input
697
- }, _errorFactory))(input, "$input", true);
698
- }
699
- return input;
700
- };
701
- })()(value);
129
+ try {
130
+ return (() => {
131
+ const _ip0 = input => "string" === typeof input["file"];
132
+ const _ip1 = input => "string" === typeof input["id"];
133
+ const _ip2 = input => "string" === typeof input["name"];
134
+ const _ip3 = input => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"];
135
+ const _ip4 = input => "boolean" === typeof input["external"];
136
+ const _ip5 = input => undefined === input["ignored"] || "boolean" === typeof input["ignored"];
137
+ const _ip6 = input => undefined === input["exported"] || "boolean" === typeof input["exported"];
138
+ const _ip7 = input => undefined === input["closure"] || "boolean" === typeof input["closure"];
139
+ const _ip8 = input => undefined === input["modifiers"] || Array.isArray(input["modifiers"]) && input["modifiers"].every(elem => true === _iv0.has(elem));
140
+ const _iv0 = new Set(["abstract", "async", "const", "declare", "default", "export", "private", "protected", "public", "readonly", "static"]);
141
+ const _ip9 = input => undefined === input["literals"] || Array.isArray(input["literals"]) && input["literals"].every(elem => "string" === typeof elem);
142
+ const _ip10 = input => undefined === input["enumMembers"] || Array.isArray(input["enumMembers"]) && input["enumMembers"].every(elem => "object" === typeof elem && null !== elem && _io9(elem));
143
+ const _ip11 = input => undefined === input["objectMembers"] || Array.isArray(input["objectMembers"]) && input["objectMembers"].every(elem => "object" === typeof elem && null !== elem && _io10(elem));
144
+ const _ip12 = input => undefined === input["decorators"] || Array.isArray(input["decorators"]) && input["decorators"].every(elem => "object" === typeof elem && null !== elem && _io11(elem));
145
+ const _ip13 = input => undefined === input["signature"] || "string" === typeof input["signature"];
146
+ const _ip14 = input => "class" === input["kind"] || "enum" === input["kind"] || "function" === input["kind"] || "interface" === input["kind"] || "method" === input["kind"] || "module" === input["kind"] || "type" === input["kind"] || "variable" === input["kind"];
147
+ const _ip15 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io13(input["evidence"]);
148
+ const _ip16 = input => undefined === input["implementation"] || "object" === typeof input["implementation"] && null !== input["implementation"] && _io13(input["implementation"]);
149
+ const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _assertGuard_1._assertGuard(_exceptionable, {
150
+ method: "typia.assert",
151
+ path: _path + ".file",
152
+ expected: "string",
153
+ value: input["file"]
154
+ }, _errorFactory);
155
+ const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["id"] || _assertGuard_1._assertGuard(_exceptionable, {
156
+ method: "typia.assert",
157
+ path: _path + ".id",
158
+ expected: "string",
159
+ value: input["id"]
160
+ }, _errorFactory);
161
+ const _ap2 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _assertGuard_1._assertGuard(_exceptionable, {
162
+ method: "typia.assert",
163
+ path: _path + ".name",
164
+ expected: "string",
165
+ value: input["name"]
166
+ }, _errorFactory);
167
+ const _ap3 = (input, _path, _exceptionable = true) => undefined === input["qualifiedName"] || "string" === typeof input["qualifiedName"] || _assertGuard_1._assertGuard(_exceptionable, {
168
+ method: "typia.assert",
169
+ path: _path + ".qualifiedName",
170
+ expected: "(string | undefined)",
171
+ value: input["qualifiedName"]
172
+ }, _errorFactory);
173
+ const _ap4 = (input, _path, _exceptionable = true) => "boolean" === typeof input["external"] || _assertGuard_1._assertGuard(_exceptionable, {
174
+ method: "typia.assert",
175
+ path: _path + ".external",
176
+ expected: "boolean",
177
+ value: input["external"]
178
+ }, _errorFactory);
179
+ const _ap5 = (input, _path, _exceptionable = true) => undefined === input["ignored"] || "boolean" === typeof input["ignored"] || _assertGuard_1._assertGuard(_exceptionable, {
180
+ method: "typia.assert",
181
+ path: _path + ".ignored",
182
+ expected: "(boolean | undefined)",
183
+ value: input["ignored"]
184
+ }, _errorFactory);
185
+ const _ap6 = (input, _path, _exceptionable = true) => undefined === input["exported"] || "boolean" === typeof input["exported"] || _assertGuard_1._assertGuard(_exceptionable, {
186
+ method: "typia.assert",
187
+ path: _path + ".exported",
188
+ expected: "(boolean | undefined)",
189
+ value: input["exported"]
190
+ }, _errorFactory);
191
+ const _ap7 = (input, _path, _exceptionable = true) => undefined === input["closure"] || "boolean" === typeof input["closure"] || _assertGuard_1._assertGuard(_exceptionable, {
192
+ method: "typia.assert",
193
+ path: _path + ".closure",
194
+ expected: "(boolean | undefined)",
195
+ value: input["closure"]
196
+ }, _errorFactory);
197
+ const _ap8 = (input, _path, _exceptionable = true) => undefined === input["modifiers"] || (Array.isArray(input["modifiers"]) || _assertGuard_1._assertGuard(_exceptionable, {
198
+ method: "typia.assert",
199
+ path: _path + ".modifiers",
200
+ expected: "(Array<TtscGraphNodeModifier> | undefined)",
201
+ value: input["modifiers"]
202
+ }, _errorFactory)) && input["modifiers"].every((elem, _index21) => true === _av0.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
203
+ method: "typia.assert",
204
+ path: _path + ".modifiers[" + _index21 + "]",
205
+ expected: _ae0,
206
+ value: elem
207
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
208
+ method: "typia.assert",
209
+ path: _path + ".modifiers",
210
+ expected: "(Array<TtscGraphNodeModifier> | undefined)",
211
+ value: input["modifiers"]
212
+ }, _errorFactory);
213
+ const _av0 = new Set(["abstract", "async", "const", "declare", "default", "export", "private", "protected", "public", "readonly", "static"]);
214
+ const _ae0 = "(\"abstract\" | \"async\" | \"const\" | \"declare\" | \"default\" | \"export\" | \"private\" | \"protected\" | \"public\" | \"readonly\" | \"static\")";
215
+ const _ap9 = (input, _path, _exceptionable = true) => undefined === input["literals"] || (Array.isArray(input["literals"]) || _assertGuard_1._assertGuard(_exceptionable, {
216
+ method: "typia.assert",
217
+ path: _path + ".literals",
218
+ expected: "(Array<string> | undefined)",
219
+ value: input["literals"]
220
+ }, _errorFactory)) && input["literals"].every((elem, _index22) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
221
+ method: "typia.assert",
222
+ path: _path + ".literals[" + _index22 + "]",
223
+ expected: "string",
224
+ value: elem
225
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
226
+ method: "typia.assert",
227
+ path: _path + ".literals",
228
+ expected: "(Array<string> | undefined)",
229
+ value: input["literals"]
230
+ }, _errorFactory);
231
+ const _ap10 = (input, _path, _exceptionable = true) => undefined === input["enumMembers"] || (Array.isArray(input["enumMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
232
+ method: "typia.assert",
233
+ path: _path + ".enumMembers",
234
+ expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
235
+ value: input["enumMembers"]
236
+ }, _errorFactory)) && input["enumMembers"].every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
237
+ method: "typia.assert",
238
+ path: _path + ".enumMembers[" + _index23 + "]",
239
+ expected: "ITtscGraphNode.IEnumMember",
240
+ value: elem
241
+ }, _errorFactory)) && _ao9(elem, _path + ".enumMembers[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
242
+ method: "typia.assert",
243
+ path: _path + ".enumMembers[" + _index23 + "]",
244
+ expected: "ITtscGraphNode.IEnumMember",
245
+ value: elem
246
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
247
+ method: "typia.assert",
248
+ path: _path + ".enumMembers",
249
+ expected: "(Array<ITtscGraphNode.IEnumMember> | undefined)",
250
+ value: input["enumMembers"]
251
+ }, _errorFactory);
252
+ const _ap11 = (input, _path, _exceptionable = true) => undefined === input["objectMembers"] || (Array.isArray(input["objectMembers"]) || _assertGuard_1._assertGuard(_exceptionable, {
253
+ method: "typia.assert",
254
+ path: _path + ".objectMembers",
255
+ expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
256
+ value: input["objectMembers"]
257
+ }, _errorFactory)) && input["objectMembers"].every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
258
+ method: "typia.assert",
259
+ path: _path + ".objectMembers[" + _index24 + "]",
260
+ expected: "ITtscGraphNode.IObjectMember",
261
+ value: elem
262
+ }, _errorFactory)) && _ao10(elem, _path + ".objectMembers[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
263
+ method: "typia.assert",
264
+ path: _path + ".objectMembers[" + _index24 + "]",
265
+ expected: "ITtscGraphNode.IObjectMember",
266
+ value: elem
267
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
268
+ method: "typia.assert",
269
+ path: _path + ".objectMembers",
270
+ expected: "(Array<ITtscGraphNode.IObjectMember> | undefined)",
271
+ value: input["objectMembers"]
272
+ }, _errorFactory);
273
+ const _ap12 = (input, _path, _exceptionable = true) => undefined === input["decorators"] || (Array.isArray(input["decorators"]) || _assertGuard_1._assertGuard(_exceptionable, {
274
+ method: "typia.assert",
275
+ path: _path + ".decorators",
276
+ expected: "(Array<ITtscGraphDecorator> | undefined)",
277
+ value: input["decorators"]
278
+ }, _errorFactory)) && input["decorators"].every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
279
+ method: "typia.assert",
280
+ path: _path + ".decorators[" + _index25 + "]",
281
+ expected: "ITtscGraphDecorator",
282
+ value: elem
283
+ }, _errorFactory)) && _ao11(elem, _path + ".decorators[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
284
+ method: "typia.assert",
285
+ path: _path + ".decorators[" + _index25 + "]",
286
+ expected: "ITtscGraphDecorator",
287
+ value: elem
288
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
289
+ method: "typia.assert",
290
+ path: _path + ".decorators",
291
+ expected: "(Array<ITtscGraphDecorator> | undefined)",
292
+ value: input["decorators"]
293
+ }, _errorFactory);
294
+ const _ap13 = (input, _path, _exceptionable = true) => undefined === input["signature"] || "string" === typeof input["signature"] || _assertGuard_1._assertGuard(_exceptionable, {
295
+ method: "typia.assert",
296
+ path: _path + ".signature",
297
+ expected: "(string | undefined)",
298
+ value: input["signature"]
299
+ }, _errorFactory);
300
+ const _ap14 = (input, _path, _exceptionable = true) => "class" === input["kind"] || "enum" === input["kind"] || "function" === input["kind"] || "interface" === input["kind"] || "method" === input["kind"] || "module" === input["kind"] || "type" === input["kind"] || "variable" === input["kind"] || _assertGuard_1._assertGuard(_exceptionable, {
301
+ method: "typia.assert",
302
+ path: _path + ".kind",
303
+ expected: "(\"class\" | \"enum\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"type\" | \"variable\")",
304
+ value: input["kind"]
305
+ }, _errorFactory);
306
+ const _ap15 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _assertGuard_1._assertGuard(_exceptionable, {
307
+ method: "typia.assert",
308
+ path: _path + ".evidence",
309
+ expected: "(ITtscGraphSpan | undefined)",
310
+ value: input["evidence"]
311
+ }, _errorFactory)) && _ao13(input["evidence"], _path + ".evidence", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
312
+ method: "typia.assert",
313
+ path: _path + ".evidence",
314
+ expected: "(ITtscGraphSpan | undefined)",
315
+ value: input["evidence"]
316
+ }, _errorFactory);
317
+ const _ap16 = (input, _path, _exceptionable = true) => undefined === input["implementation"] || ("object" === typeof input["implementation"] && null !== input["implementation"] || _assertGuard_1._assertGuard(_exceptionable, {
318
+ method: "typia.assert",
319
+ path: _path + ".implementation",
320
+ expected: "(ITtscGraphSpan | undefined)",
321
+ value: input["implementation"]
322
+ }, _errorFactory)) && _ao13(input["implementation"], _path + ".implementation", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
323
+ method: "typia.assert",
324
+ path: _path + ".implementation",
325
+ expected: "(ITtscGraphSpan | undefined)",
326
+ value: input["implementation"]
327
+ }, _errorFactory);
328
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.project || _assertGuard_1._assertGuard(_exceptionable, {
329
+ method: "typia.assert",
330
+ path: _path + ".project",
331
+ expected: "string",
332
+ value: input.project
333
+ }, _errorFactory)) && ("string" === typeof input.tsconfig || _assertGuard_1._assertGuard(_exceptionable, {
334
+ method: "typia.assert",
335
+ path: _path + ".tsconfig",
336
+ expected: "string",
337
+ value: input.tsconfig
338
+ }, _errorFactory)) && (("object" === typeof input.provenance && null !== input.provenance || _assertGuard_1._assertGuard(_exceptionable, {
339
+ method: "typia.assert",
340
+ path: _path + ".provenance",
341
+ expected: "ITtscGraphDump.IProvenance",
342
+ value: input.provenance
343
+ }, _errorFactory)) && _ao1(input.provenance, _path + ".provenance", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
344
+ method: "typia.assert",
345
+ path: _path + ".provenance",
346
+ expected: "ITtscGraphDump.IProvenance",
347
+ value: input.provenance
348
+ }, _errorFactory)) && ((Array.isArray(input.diagnostics) || _assertGuard_1._assertGuard(_exceptionable, {
349
+ method: "typia.assert",
350
+ path: _path + ".diagnostics",
351
+ expected: "Array<ITtscGraphDump.IDiagnostic>",
352
+ value: input.diagnostics
353
+ }, _errorFactory)) && input.diagnostics.every((elem, _index14) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
354
+ method: "typia.assert",
355
+ path: _path + ".diagnostics[" + _index14 + "]",
356
+ expected: "ITtscGraphDump.IDiagnostic",
357
+ value: elem
358
+ }, _errorFactory)) && _ao7(elem, _path + ".diagnostics[" + _index14 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
359
+ method: "typia.assert",
360
+ path: _path + ".diagnostics[" + _index14 + "]",
361
+ expected: "ITtscGraphDump.IDiagnostic",
362
+ value: elem
363
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
364
+ method: "typia.assert",
365
+ path: _path + ".diagnostics",
366
+ expected: "Array<ITtscGraphDump.IDiagnostic>",
367
+ value: input.diagnostics
368
+ }, _errorFactory)) && ((Array.isArray(input.nodes) || _assertGuard_1._assertGuard(_exceptionable, {
369
+ method: "typia.assert",
370
+ path: _path + ".nodes",
371
+ expected: "Array<ITtscGraphDump.INode>",
372
+ value: input.nodes
373
+ }, _errorFactory)) && input.nodes.every((elem, _index15) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
374
+ method: "typia.assert",
375
+ path: _path + ".nodes[" + _index15 + "]",
376
+ expected: "ITtscGraphDump.INode",
377
+ value: elem
378
+ }, _errorFactory)) && _ao8(elem, _path + ".nodes[" + _index15 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
379
+ method: "typia.assert",
380
+ path: _path + ".nodes[" + _index15 + "]",
381
+ expected: "ITtscGraphDump.INode",
382
+ value: elem
383
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
384
+ method: "typia.assert",
385
+ path: _path + ".nodes",
386
+ expected: "Array<ITtscGraphDump.INode>",
387
+ value: input.nodes
388
+ }, _errorFactory)) && ((Array.isArray(input.edges) || _assertGuard_1._assertGuard(_exceptionable, {
389
+ method: "typia.assert",
390
+ path: _path + ".edges",
391
+ expected: "Array<ITtscGraphDump.IEdge>",
392
+ value: input.edges
393
+ }, _errorFactory)) && input.edges.every((elem, _index16) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
394
+ method: "typia.assert",
395
+ path: _path + ".edges[" + _index16 + "]",
396
+ expected: "ITtscGraphDump.IEdge",
397
+ value: elem
398
+ }, _errorFactory)) && _ao14(elem, _path + ".edges[" + _index16 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
399
+ method: "typia.assert",
400
+ path: _path + ".edges[" + _index16 + "]",
401
+ expected: "ITtscGraphDump.IEdge",
402
+ value: elem
403
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
404
+ method: "typia.assert",
405
+ path: _path + ".edges",
406
+ expected: "Array<ITtscGraphDump.IEdge>",
407
+ value: input.edges
408
+ }, _errorFactory));
409
+ const _ao1 = (input, _path, _exceptionable = true) => ("number" === typeof input.schemaVersion || _assertGuard_1._assertGuard(_exceptionable, {
410
+ method: "typia.assert",
411
+ path: _path + ".schemaVersion",
412
+ expected: "number",
413
+ value: input.schemaVersion
414
+ }, _errorFactory)) && ((Array.isArray(input.capabilities) || _assertGuard_1._assertGuard(_exceptionable, {
415
+ method: "typia.assert",
416
+ path: _path + ".capabilities",
417
+ expected: "Array<string>",
418
+ value: input.capabilities
419
+ }, _errorFactory)) && input.capabilities.every((elem, _index17) => "string" === typeof elem || _assertGuard_1._assertGuard(_exceptionable, {
420
+ method: "typia.assert",
421
+ path: _path + ".capabilities[" + _index17 + "]",
422
+ expected: "string",
423
+ value: elem
424
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
425
+ method: "typia.assert",
426
+ path: _path + ".capabilities",
427
+ expected: "Array<string>",
428
+ value: input.capabilities
429
+ }, _errorFactory)) && (("object" === typeof input.producer && null !== input.producer || _assertGuard_1._assertGuard(_exceptionable, {
430
+ method: "typia.assert",
431
+ path: _path + ".producer",
432
+ expected: "ITtscGraphDump.IProducer",
433
+ value: input.producer
434
+ }, _errorFactory)) && _ao2(input.producer, _path + ".producer", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
435
+ method: "typia.assert",
436
+ path: _path + ".producer",
437
+ expected: "ITtscGraphDump.IProducer",
438
+ value: input.producer
439
+ }, _errorFactory)) && (("object" === typeof input.universe && null !== input.universe || _assertGuard_1._assertGuard(_exceptionable, {
440
+ method: "typia.assert",
441
+ path: _path + ".universe",
442
+ expected: "ITtscGraphDump.IUniverse",
443
+ value: input.universe
444
+ }, _errorFactory)) && _ao3(input.universe, _path + ".universe", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
445
+ method: "typia.assert",
446
+ path: _path + ".universe",
447
+ expected: "ITtscGraphDump.IUniverse",
448
+ value: input.universe
449
+ }, _errorFactory)) && ((Array.isArray(input.sources) || _assertGuard_1._assertGuard(_exceptionable, {
450
+ method: "typia.assert",
451
+ path: _path + ".sources",
452
+ expected: "Array<ITtscGraphDump.ISourceDigest>",
453
+ value: input.sources
454
+ }, _errorFactory)) && input.sources.every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
455
+ method: "typia.assert",
456
+ path: _path + ".sources[" + _index18 + "]",
457
+ expected: "ITtscGraphDump.ISourceDigest",
458
+ value: elem
459
+ }, _errorFactory)) && _ao6(elem, _path + ".sources[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
460
+ method: "typia.assert",
461
+ path: _path + ".sources[" + _index18 + "]",
462
+ expected: "ITtscGraphDump.ISourceDigest",
463
+ value: elem
464
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
465
+ method: "typia.assert",
466
+ path: _path + ".sources",
467
+ expected: "Array<ITtscGraphDump.ISourceDigest>",
468
+ value: input.sources
469
+ }, _errorFactory));
470
+ const _ao10 = (input, _path, _exceptionable = true) => _ap2(input, _path, true && _exceptionable) && ("method" === input.kind || "property" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
471
+ method: "typia.assert",
472
+ path: _path + ".kind",
473
+ expected: "(\"method\" | \"property\")",
474
+ value: input.kind
475
+ }, _errorFactory)) && (undefined === input.line || "number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
476
+ method: "typia.assert",
477
+ path: _path + ".line",
478
+ expected: "(number | undefined)",
479
+ value: input.line
480
+ }, _errorFactory)) && _ap13(input, _path, true && _exceptionable);
481
+ const _ao11 = (input, _path, _exceptionable = true) => _ap2(input, _path, true && _exceptionable) && ((Array.isArray(input.arguments) || _assertGuard_1._assertGuard(_exceptionable, {
482
+ method: "typia.assert",
483
+ path: _path + ".arguments",
484
+ expected: "Array<ITtscGraphDecorator.IArgument>",
485
+ value: input.arguments
486
+ }, _errorFactory)) && input.arguments.every((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
487
+ method: "typia.assert",
488
+ path: _path + ".arguments[" + _index26 + "]",
489
+ expected: "ITtscGraphDecorator.IArgument",
490
+ value: elem
491
+ }, _errorFactory)) && _ao12(elem, _path + ".arguments[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
492
+ method: "typia.assert",
493
+ path: _path + ".arguments[" + _index26 + "]",
494
+ expected: "ITtscGraphDecorator.IArgument",
495
+ value: elem
496
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
497
+ method: "typia.assert",
498
+ path: _path + ".arguments",
499
+ expected: "Array<ITtscGraphDecorator.IArgument>",
500
+ value: input.arguments
501
+ }, _errorFactory));
502
+ const _ao12 = (input, _path, _exceptionable = true) => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal || _assertGuard_1._assertGuard(_exceptionable, {
503
+ method: "typia.assert",
504
+ path: _path + ".literal",
505
+ expected: "(boolean | number | string | undefined)",
506
+ value: input.literal
507
+ }, _errorFactory);
508
+ const _ao13 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || _assertGuard_1._assertGuard(_exceptionable, {
509
+ method: "typia.assert",
510
+ path: _path + ".file",
511
+ expected: "(string | undefined)",
512
+ value: input.file
513
+ }, _errorFactory)) && ("number" === typeof input.startLine || _assertGuard_1._assertGuard(_exceptionable, {
514
+ method: "typia.assert",
515
+ path: _path + ".startLine",
516
+ expected: "number",
517
+ value: input.startLine
518
+ }, _errorFactory)) && (undefined === input.startCol || "number" === typeof input.startCol || _assertGuard_1._assertGuard(_exceptionable, {
519
+ method: "typia.assert",
520
+ path: _path + ".startCol",
521
+ expected: "(number | undefined)",
522
+ value: input.startCol
523
+ }, _errorFactory)) && (undefined === input.endLine || "number" === typeof input.endLine || _assertGuard_1._assertGuard(_exceptionable, {
524
+ method: "typia.assert",
525
+ path: _path + ".endLine",
526
+ expected: "(number | undefined)",
527
+ value: input.endLine
528
+ }, _errorFactory)) && (undefined === input.endCol || "number" === typeof input.endCol || _assertGuard_1._assertGuard(_exceptionable, {
529
+ method: "typia.assert",
530
+ path: _path + ".endCol",
531
+ expected: "(number | undefined)",
532
+ value: input.endCol
533
+ }, _errorFactory));
534
+ const _ao14 = (input, _path, _exceptionable = true) => ("string" === typeof input.from || _assertGuard_1._assertGuard(_exceptionable, {
535
+ method: "typia.assert",
536
+ path: _path + ".from",
537
+ expected: "string",
538
+ value: input.from
539
+ }, _errorFactory)) && ("string" === typeof input.to || _assertGuard_1._assertGuard(_exceptionable, {
540
+ method: "typia.assert",
541
+ path: _path + ".to",
542
+ expected: "string",
543
+ value: input.to
544
+ }, _errorFactory)) && ("accesses" === input.kind || "calls" === input.kind || "exports" === input.kind || "extends" === input.kind || "implements" === input.kind || "instantiates" === input.kind || "overrides" === input.kind || "renders" === input.kind || "type_ref" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
545
+ method: "typia.assert",
546
+ path: _path + ".kind",
547
+ expected: "(\"accesses\" | \"calls\" | \"exports\" | \"extends\" | \"implements\" | \"instantiates\" | \"overrides\" | \"renders\" | \"type_ref\")",
548
+ value: input.kind
549
+ }, _errorFactory)) && _ap15(input, _path, true && _exceptionable);
550
+ const _ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.tool || _assertGuard_1._assertGuard(_exceptionable, {
551
+ method: "typia.assert",
552
+ path: _path + ".tool",
553
+ expected: "string",
554
+ value: input.tool
555
+ }, _errorFactory)) && ("string" === typeof input.version || _assertGuard_1._assertGuard(_exceptionable, {
556
+ method: "typia.assert",
557
+ path: _path + ".version",
558
+ expected: "string",
559
+ value: input.version
560
+ }, _errorFactory)) && ("string" === typeof input.typescript || _assertGuard_1._assertGuard(_exceptionable, {
561
+ method: "typia.assert",
562
+ path: _path + ".typescript",
563
+ expected: "string",
564
+ value: input.typescript
565
+ }, _errorFactory));
566
+ const _ao3 = (input, _path, _exceptionable = true) => ((Array.isArray(input.configs) || _assertGuard_1._assertGuard(_exceptionable, {
567
+ method: "typia.assert",
568
+ path: _path + ".configs",
569
+ expected: "Array<ITtscGraphDump.IFileDigest>",
570
+ value: input.configs
571
+ }, _errorFactory)) && input.configs.every((elem, _index19) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
572
+ method: "typia.assert",
573
+ path: _path + ".configs[" + _index19 + "]",
574
+ expected: "ITtscGraphDump.IFileDigest",
575
+ value: elem
576
+ }, _errorFactory)) && _ao4(elem, _path + ".configs[" + _index19 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
577
+ method: "typia.assert",
578
+ path: _path + ".configs[" + _index19 + "]",
579
+ expected: "ITtscGraphDump.IFileDigest",
580
+ value: elem
581
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
582
+ method: "typia.assert",
583
+ path: _path + ".configs",
584
+ expected: "Array<ITtscGraphDump.IFileDigest>",
585
+ value: input.configs
586
+ }, _errorFactory)) && ((Array.isArray(input.roots) || _assertGuard_1._assertGuard(_exceptionable, {
587
+ method: "typia.assert",
588
+ path: _path + ".roots",
589
+ expected: "Array<ITtscGraphDump.IRootFile>",
590
+ value: input.roots
591
+ }, _errorFactory)) && input.roots.every((elem, _index20) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
592
+ method: "typia.assert",
593
+ path: _path + ".roots[" + _index20 + "]",
594
+ expected: "ITtscGraphDump.IRootFile",
595
+ value: elem
596
+ }, _errorFactory)) && _ao5(elem, _path + ".roots[" + _index20 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
597
+ method: "typia.assert",
598
+ path: _path + ".roots[" + _index20 + "]",
599
+ expected: "ITtscGraphDump.IRootFile",
600
+ value: elem
601
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
602
+ method: "typia.assert",
603
+ path: _path + ".roots",
604
+ expected: "Array<ITtscGraphDump.IRootFile>",
605
+ value: input.roots
606
+ }, _errorFactory));
607
+ const _ao4 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.digest || _assertGuard_1._assertGuard(_exceptionable, {
608
+ method: "typia.assert",
609
+ path: _path + ".digest",
610
+ expected: "string",
611
+ value: input.digest
612
+ }, _errorFactory));
613
+ const _ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.config || _assertGuard_1._assertGuard(_exceptionable, {
614
+ method: "typia.assert",
615
+ path: _path + ".config",
616
+ expected: "string",
617
+ value: input.config
618
+ }, _errorFactory)) && _ap0(input, _path, true && _exceptionable);
619
+ const _ao6 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.checkerDigest || _assertGuard_1._assertGuard(_exceptionable, {
620
+ method: "typia.assert",
621
+ path: _path + ".checkerDigest",
622
+ expected: "string",
623
+ value: input.checkerDigest
624
+ }, _errorFactory)) && ("string" === typeof input.diskDigest || _assertGuard_1._assertGuard(_exceptionable, {
625
+ method: "typia.assert",
626
+ path: _path + ".diskDigest",
627
+ expected: "string",
628
+ value: input.diskDigest
629
+ }, _errorFactory));
630
+ const _ao7 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("number" === typeof input.line || _assertGuard_1._assertGuard(_exceptionable, {
631
+ method: "typia.assert",
632
+ path: _path + ".line",
633
+ expected: "number",
634
+ value: input.line
635
+ }, _errorFactory)) && ("number" === typeof input.column || _assertGuard_1._assertGuard(_exceptionable, {
636
+ method: "typia.assert",
637
+ path: _path + ".column",
638
+ expected: "number",
639
+ value: input.column
640
+ }, _errorFactory)) && ("number" === typeof input.code || _assertGuard_1._assertGuard(_exceptionable, {
641
+ method: "typia.assert",
642
+ path: _path + ".code",
643
+ expected: "number",
644
+ value: input.code
645
+ }, _errorFactory)) && ("error" === input.category || "warning" === input.category || _assertGuard_1._assertGuard(_exceptionable, {
646
+ method: "typia.assert",
647
+ path: _path + ".category",
648
+ expected: "(\"error\" | \"warning\")",
649
+ value: input.category
650
+ }, _errorFactory)) && ("string" === typeof input.message || _assertGuard_1._assertGuard(_exceptionable, {
651
+ method: "typia.assert",
652
+ path: _path + ".message",
653
+ expected: "string",
654
+ value: input.message
655
+ }, _errorFactory));
656
+ const _ao8 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && _ap2(input, _path, true && _exceptionable) && _ap3(input, _path, true && _exceptionable) && _ap0(input, _path, true && _exceptionable) && _ap4(input, _path, true && _exceptionable) && _ap5(input, _path, true && _exceptionable) && _ap6(input, _path, true && _exceptionable) && _ap7(input, _path, true && _exceptionable) && _ap8(input, _path, true && _exceptionable) && _ap9(input, _path, true && _exceptionable) && _ap10(input, _path, true && _exceptionable) && _ap11(input, _path, true && _exceptionable) && _ap12(input, _path, true && _exceptionable) && _ap13(input, _path, true && _exceptionable) && _ap14(input, _path, true && _exceptionable) && _ap15(input, _path, true && _exceptionable) && _ap16(input, _path, true && _exceptionable);
657
+ const _ao9 = (input, _path, _exceptionable = true) => _ap2(input, _path, true && _exceptionable) && (undefined === input.value || "string" === typeof input.value || _assertGuard_1._assertGuard(_exceptionable, {
658
+ method: "typia.assert",
659
+ path: _path + ".value",
660
+ expected: "(string | undefined)",
661
+ value: input.value
662
+ }, _errorFactory));
663
+ const _io0 = input => "string" === typeof input.project && "string" === typeof input.tsconfig && ("object" === typeof input.provenance && null !== input.provenance && _io1(input.provenance)) && (Array.isArray(input.diagnostics) && input.diagnostics.every(elem => "object" === typeof elem && null !== elem && _io7(elem))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io8(elem))) && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io14(elem)));
664
+ const _io1 = input => "number" === typeof input.schemaVersion && (Array.isArray(input.capabilities) && input.capabilities.every(elem => "string" === typeof elem)) && ("object" === typeof input.producer && null !== input.producer && _io2(input.producer)) && ("object" === typeof input.universe && null !== input.universe && _io3(input.universe)) && (Array.isArray(input.sources) && input.sources.every(elem => "object" === typeof elem && null !== elem && _io6(elem)));
665
+ const _io10 = input => _ip2(input) && ("method" === input.kind || "property" === input.kind) && (undefined === input.line || "number" === typeof input.line) && _ip13(input);
666
+ const _io11 = input => _ip2(input) && (Array.isArray(input.arguments) && input.arguments.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)));
667
+ const _io12 = input => undefined === input.literal || "string" === typeof input.literal || "number" === typeof input.literal || "boolean" === typeof input.literal;
668
+ const _io13 = input => (undefined === input.file || "string" === typeof input.file) && "number" === typeof input.startLine && (undefined === input.startCol || "number" === typeof input.startCol) && (undefined === input.endLine || "number" === typeof input.endLine) && (undefined === input.endCol || "number" === typeof input.endCol);
669
+ const _io14 = input => "string" === typeof input.from && "string" === typeof input.to && ("accesses" === input.kind || "calls" === input.kind || "exports" === input.kind || "extends" === input.kind || "implements" === input.kind || "instantiates" === input.kind || "overrides" === input.kind || "renders" === input.kind || "type_ref" === input.kind) && _ip15(input);
670
+ const _io2 = input => "string" === typeof input.tool && "string" === typeof input.version && "string" === typeof input.typescript;
671
+ const _io3 = input => Array.isArray(input.configs) && input.configs.every(elem => "object" === typeof elem && null !== elem && _io4(elem)) && (Array.isArray(input.roots) && input.roots.every(elem => "object" === typeof elem && null !== elem && _io5(elem)));
672
+ const _io4 = input => _ip0(input) && "string" === typeof input.digest;
673
+ const _io5 = input => "string" === typeof input.config && _ip0(input);
674
+ const _io6 = input => _ip0(input) && "string" === typeof input.checkerDigest && "string" === typeof input.diskDigest;
675
+ const _io7 = input => _ip0(input) && "number" === typeof input.line && "number" === typeof input.column && "number" === typeof input.code && ("error" === input.category || "warning" === input.category) && "string" === typeof input.message;
676
+ const _io8 = input => _ip1(input) && _ip2(input) && _ip3(input) && _ip0(input) && _ip4(input) && _ip5(input) && _ip6(input) && _ip7(input) && _ip8(input) && _ip9(input) && _ip10(input) && _ip11(input) && _ip12(input) && _ip13(input) && _ip14(input) && _ip15(input) && _ip16(input);
677
+ const _io9 = input => _ip2(input) && (undefined === input.value || "string" === typeof input.value);
678
+ const __is = input => "object" === typeof input && null !== input && _io0(input);
679
+ let _errorFactory;
680
+ return (input, errorFactory) => {
681
+ if (false === __is(input)) {
682
+ _errorFactory = errorFactory;
683
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
684
+ method: "typia.assert",
685
+ path: _path + "",
686
+ expected: "ITtscGraphDump",
687
+ value: input
688
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
689
+ method: "typia.assert",
690
+ path: _path + "",
691
+ expected: "ITtscGraphDump",
692
+ value: input
693
+ }, _errorFactory))(input, "$input", true);
694
+ }
695
+ return input;
696
+ };
697
+ })()(value);
698
+ }
699
+ catch (error) {
700
+ throw new Error(`@ttsc/graph: dump output does not match schema v${String(exports.DUMP_SCHEMA_VERSION)}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
701
+ }
702
702
  }
703
703
  //# sourceMappingURL=loadGraph.js.map