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
Indeed, currently the interface and other type definitions are reduced to just the name line, which may be too aggressive in terms of information reduction.
It would be better to preserve all interface, type, and class properties and methods (excluding implementations) - essentially maintaining the same level of information as a d.ts file.
I suggest also preserving documentation comments (docstrings in Python, JSDoc in JavaScript, etc.) along with type declarations. Documentation often contains crucial information about method usage, parameters, and return values that helps LLMs understand the code's purpose and behavior.
If documentation preservation impacts file size significantly, perhaps this could be implemented as a configurable option.
Type declarations are structural anchors for LLMs to understand code relationships, whereas function bodies can be safely compressed.
The text was updated successfully, but these errors were encountered: