Rush StackShopBlogEvents
Skip to main content

Home > @microsoft/api-extractor > IExtractorInvokeOptions > messageCallback

IExtractorInvokeOptions.messageCallback property

An optional callback function that will be called for each ExtractorMessage before it is displayed by API Extractor. The callback can customize the message, handle it, or discard it.


messageCallback?: (message: ExtractorMessage) => void;


If a messageCallback is not provided, then by default API Extractor will print the messages to the STDERR/STDOUT console.