Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
messageCallback: (message: ApiExtractor.ExtractorMessage) => {
switch (message.logLevel) {
case ApiExtractor.ExtractorLogLevel.Error:
this._terminal.writeErrorLine.bind(this._terminal);
break;
case ApiExtractor.ExtractorLogLevel.Warning:
this._terminal.writeWarningLine.bind(this._terminal);
break;
case ApiExtractor.ExtractorLogLevel.Info:
this._terminal.writeLine.bind(this._terminal);
break;
case ApiExtractor.ExtractorLogLevel.Verbose:
this._terminal.writeVerboseLine.bind(this._terminal);
break;
default:
return;
}
message.handled = true;
},
typescriptCompilerFolder: ToolPaths.typescriptPackagePath