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 factory methods and local functions lose their call ownership #5593
A TypeScript factory can return a named method whose body calls a local helper. Graphify omits the method and the function-valued const. As a result, the graph can show that constructing the object calls a dependency that only runs when the method is invoked.
Run graphify extract . --code-only --no-cluster and inspect graphify-out/graph.json.
The graph shows make() → load() at line 3. I expected make() to own helper() and .read(), with calls edges from .read() to helper() and from helper() to load().
I reproduced this on v8 at a7295bcaafb6ba003629dc7103178263d571f306 using Python 3.14.10 on macOS arm64.
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): represent local callables and returned factory methods