TypeScript Type System
TypeScript provides a rich type system with interfaces, type aliases, enums, and classes. Interfaces define object shapes and can extend other interfaces. Type aliases create type names for complex types, unions, intersections, and more. Enums define sets of named constants. Classes combine type definitions with implementation. Type extractors parse TypeScript code to identify these type definitions, extracting their names, structures, and locations for analysis and documentation.