Expand description
Resolution of extracted TypeScript fragments into a graph.
Structs§
- 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 LAST insidestats, and only when the repo carries a TS fragment at all.
Functions§
- read_
ts_ path_ aliases pathsandbaseUrlare whole-property overrides in TypeScript’s own inheritance rule, not merged key by key – the nearest config that declares one wins it outright.pathsentries resolve against that config’s own baseUrl when it has one, else against the directory the config sits in (TypeScript 4.1’s rule).- resolve_
specifier - Relative specifiers resolve directly; a bare one resolves only as far as the
repo’s OWN tsconfig paths/baseUrl already take it. Anything else is
external– the TS-side counterpart of the C# graph’s cross-project handling, and never a guess at a package’s internals. - 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.