8000 Add support for TypeScript declaration files (.d.ts) · Issue #467 · CodeGraphContext/CodeGraphContext · GitHub
[go: up one dir, main page]

Skip to content

Add support for TypeScript declaration files (.d.ts) #467

@Shashankss1205

Description

@Shashankss1205

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

  1. Add a .d.ts file in the sample_project_typescript:
    sample_dts.d.ts
  2. 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 PR

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0