Skip to content

Features

dtsx provides a comprehensive set of features for generating TypeScript declaration files. Here are the key features:

Core Features

  • Fast TypeScript Declaration Generation: Generate .d.ts files quickly and efficiently
  • Smart Import Optimization: Automatically optimizes imports based on actual usage
  • Type Inference: Intelligent type inference for complex structures
  • Comment Preservation: Maintains documentation comments in generated declarations
  • Multi-line Type Formatting: Properly formats complex multi-line type definitions

Type Support

  • Interfaces and Types
  • Functions and Methods
  • Classes and Enums
  • Modules and Namespaces
  • Generics
  • Union/Intersection Types
  • Conditional Types
  • Mapped Types
  • Object Types
  • Array Types

Configuration Options

  • Customizable output structure
  • Source root directory configuration
  • Entry point specification
  • Output directory control
  • Comment preservation options
  • Clean output directory option
  • TypeScript configuration integration

Released under the MIT License.