Home > @microsoft/api-extractor > ExtractorMessage
ExtractorMessage class
This object is used to report an error or warning that occurred during API Extractor's analysis.
Signature:
export declare class ExtractorMessage
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ExtractorMessage class.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| The category of issue. | ||
boolean | If the IExtractorInvokeOptions.messageCallback sets this property to true, it will prevent the message from being displayed by API Extractor. | ||
Specifies how the message should be reported. | |||
| tsdoc.TSDocMessageId | ExtractorMessageId | ConsoleMessageId | string | A text string that uniquely identifies the issue type. This identifier can be used to suppress or configure the reporting of issues, and also to search for help about an issue. | |
| Additional contextual information about the message that may be useful when reporting errors. All properties are optional. | ||
| number | undefined | The column number where the issue occurred in the input source file. This is not used if | |
| number | undefined | The line number where the issue occurred in the input source file. This is not used if | |
| string | undefined | The absolute path to the affected input source file, if there is one. | |
| string | The text description of this issue. |
Methods
Method | Modifiers | Description |
|---|---|---|
Returns the message formatted with its identifier and file position. | ||