import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { formatDiagnostics } = Deno;
UNSTABLE: new API, yet to be vetted.
Format an array of diagnostic items and return them as a single string in a user friendly format.
const [diagnostics, result] = Deno.compile("file_with_compile_issues.ts");
console.table(diagnostics); // Prints raw diagnostic data
console.log(Deno.formatDiagnostics(diagnostics)); // User friendly output of diagnostics
Parameters
items: DiagnosticItem[]
An array of diagnostic items to format