Skip to main content
Go to Latest
method Project.prototype.formatDiagnosticsWithColorAndContext
import { Project } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

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

Parameters

diagnostics: ReadonlyArray<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