Home > @microsoft/api-extractor
api-extractor package
API Extractor helps with validation, documentation, and reviewing of the exported API for a TypeScript library. The @microsoft/api-extractor package provides the command-line tool. It also exposes a developer API that you can use to invoke API Extractor programmatically.
Classes
Class | Description |
|---|---|
This class represents the TypeScript compiler state. This allows an optimization where multiple invocations of API Extractor can reuse the same TypeScript compiler analysis. | |
The starting point for invoking the API Extractor tool. | |
The | |
This object is used to report an error or warning that occurred during API Extractor's analysis. | |
This object represents the outcome of an invocation of API Extractor. |
Enumerations
Enumeration | Description |
|---|---|
Unique identifiers for console messages reported by API Extractor. | |
Used with IConfigMessageReportingRule.logLevel and IExtractorInvokeOptions.messageCallback. | |
Specifies a category of messages for use with ExtractorMessage. | |
Unique identifiers for messages reported by API Extractor during its analysis. |
Interfaces
Interface | Description |
|---|---|
(BETA) | |
Options for CompilerState.create() | |
Configures how the API report files (*.api.md) will be generated. | |
Determines how the TypeScript compiler engine will be invoked by API Extractor. | |
Configures how the doc model file (*.api.json) will be generated. | |
Configures how the .d.ts rollup file will be generated. | |
Configuration options for the API Extractor tool. These options can be constructed programmatically or loaded from the api-extractor.json config file using the ExtractorConfig class. | |
Configures reporting for a given message identifier. | |
Specifies a table of reporting rules for different message identifiers, and also the default rule used for identifiers that do not appear in the table. | |
Configures how the tsdoc-metadata.json file will be generated. | |
Configuration for a single API report, including its IExtractorConfigApiReport.variant. | |
Options for ExtractorConfig.tryLoadForFolder(). | |
Options for ExtractorConfig.prepare(). | |
Runtime options for Extractor. | |
Used by ExtractorMessage.properties. | |
Configures how API Extractor reports error and warning messages produced during analysis. |
Type Aliases
Type Alias | Description |
|---|---|
The allowed variations of API reports. | |
The allowed release tags that can be used to mark API items. |