Skip to main content
Module

x/ts_morph/bootstrap/mod.ts>Project#formatDiagnosticsWithColorAndContext

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Project.prototype.formatDiagnosticsWithColorAndContext
import { Project } from "https://deno.land/x/ts_morph@15.1.0/bootstrap/mod.ts";

Formats an array of diagnostics with their color and context into a string.

Parameters

diagnostics: ReadonlyArray<ts.Diagnostic>
  • Diagnostics to get a string of.
optional
opts: { newLineChar?: "\n" | "\r\n"; }
  • Collection of options. For example, the new line character to use (defaults to the OS' new line character).

Returns

string