How to use the @microsoft/api-extractor.ExtractorLogLevel function in @microsoft/api-extractor

To help you get started, we’ve selected a few @microsoft/api-extractor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / stack / rush-stack-compiler-shared / src / shared / ApiExtractorRunner.ts View on Github external
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