-
-
Notifications
You must be signed in to change notification settings - Fork 444
Open
Description
Add support for TypeScript declaration files (.d.ts)
Description
TypeScript declaration files define public APIs and type contracts but are currently ignored.
Indexing .d.ts files improves cross-package symbol resolution and API understanding.
Extensions to add
.d.ts
Implementation Notes
- Parse only type-level constructs (interfaces, types, enums, function signatures)
- Skip implementation-specific nodes
How to Test
- Add a .d.ts file in the sample_project_typescript:
sample_dts.d.ts - Run:
cgc start
cgc index sample_project_typescript
3. Verify:
React components and functions appear in the graph
Imports and exports are correctly linked
Attach a Screenshot of the code graph in your PRReactions are currently unavailable