What is API Extractor?
The API Extractor is a valuable tool for TypeScript developers aiming to manage the API surface of their library projects. Distributed as an NPM package named "microsoft/api-extractor", this utility provides a comprehensive set of features to streamline the development and maintenance of TypeScript-based libraries. The API Extractor analyzes the exported type signatures within the codebase and generates three distinct output types: an API documentation website, a .d.ts "rollup" file, and an API report to facilitate the review process during pull requests
Highlights
- API Documentation Website: The API Extractor generates a comprehensive documentation website that provides a clear and organized view of the library's API, making it easier for developers to understand and consume the available functionality
- .d.ts "Rollup" File: The tool creates a .d.ts "rollup" file, which consolidates and summarizes the type definitions across the library's codebase. This file serves as a valuable resource for consumers of the library, allowing them to quickly and easily understand the available types and interfaces
- API Report Generation: The API Extractor generates an API report, which can be used to facilitate the review process during pull requests. This report highlights any changes or updates to the library's API, enabling developers to easily identify and evaluate the impact of these modifications.
Platforms
- Mac
- Linux
- Windows
- Self-Hosted
Languages
- English