mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 10:57:13 +00:00
eca3277fb9
Bring TypeScript AST extraction to parity with Java and C# by adding the declaration types upstream graphify currently skips: - interface_declaration (parity with Java/C# class_types) - enum_declaration + members - type_alias_declaration - module-level const literals (object/array/string/call/new/template/number) via _js_extra_walk extension - new_expression as call type for both _JS_CONFIG and _TS_CONFIG Tested against tests/fixtures/typescript_advanced.ts: 8 expected node types extracted (IUserRepository, UserStatus, UserId, USER_REPOSITORY, DEFAULT_ROLES, USER_CONFIG, UserService, UserModule). Validated on a 3,800-file TypeScript monorepo (NestJS + Next.js): yields ~1,885 interfaces, ~147 enums, ~405 type aliases, ~2,236 const literal nodes, and ~1,935 instantiates edges that were previously invisible.