Expand description
Resolution of extracted TypeScript fragments into a graph.
Structs§
- TsAlias
Scopes - A repo’s tsconfig alias reading, scoped per directory.
- TsEdge
Counts - The four TS edge kinds’ counts, appended to
stats.edges_by_kindin this order and only when the repo carries a TS fragment at all. - TsGraph
- Represents
TsGraph. - TsPath
Aliases - Represents
TsPathAliases. - TsStats
stats.ts– appended insidestatsaftertest_def_count, and only when the repo carries a TS fragment at all.heuristic_by_tieris the newer fact and follows it (seegraph::Stats).
Functions§
- read_
ts_ alias_ scopes - Reads the root chain once, then finds each distinct directory
filesnames an owner for: the nearest ancestortsconfig.jsonabove it that declarespathsorbaseUrlof its own. - read_
ts_ path_ aliases - Reads the repo-root tsconfig chain into its aliases.
- resolve_
specifier - Relative specifiers resolve directly; a bare one resolves only as far as
the repo’s own tsconfig paths/baseUrl already take it – the nearest
owning scope to
from_file, root when none owns it. - resolve_
ts_ graph - Resolves the TS/TSX graph: every file’s reference fragments into edges.
- ts_
def_ id - Builds a TypeScript definition identifier from a file and symbol name.