Extremely Popular
Go to Latest
method Project.prototype.formatDiagnosticsWithColorAndContext
import { Project } from "https://dotland.deno.dev/x/fresh@1.6.7/src/dev/deps.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