You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: TypeScript calls through explicitly typed properties are missing #5585
Graphify omits the call edge for a TypeScript method invoked through an explicitly typed property, such as deps.port!.inspect(). The graph already contains the Port.inspect declaration. I expected an inferred call edge from run to that member, with the location of the call site.
Steps to reproduce
Save this as example.ts in an otherwise empty directory:
Run graphify extract . --code-only --no-cluster and inspect the calls edges in graphify-out/graph.json. The graph contains both declarations. The only edge to .inspect() is its ownership edge from Port.
This also affects dependency objects whose type is imported and narrowed with a literal-key Pick. In a pnpm workspace, I saw calls from an API route to its application interface go missing when the interface was imported through a package barrel.
Environment
Reproduced from v8 at a7295bcaafb6ba003629dc7103178263d571f306 on macOS arm64 with Python 3.14.10, using a Git checkout and uv.
Related to #5529 and #5530, which cover calls through a local alias of the property (e.g. const port = deps.port; port.inspect()).
Activity
github-actions commentedon Nov 28, 2026
Thanks for opening this issue, @rvitaliy. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
fix(typescript): resolve calls through typed properties