From 2b7e28b591a6947f76ddf9a53f49eec8f1accc0f Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 25 Feb 2020 06:48:14 +1100 Subject: feat: Add Deno.formatDiagnostics (#4032) --- cli/js/lib.deno.ns.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/js/lib.deno.ns.d.ts') diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 0c9430869..4d7822c90 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1901,6 +1901,13 @@ declare namespace Deno { items: DiagnosticItem[]; } + /** UNSTABLE: new API, yet to be vetted. + * + * Format an array of diagnostic items and return them as a single string. + * @param items An array of diagnostic items to format + */ + export function formatDiagnostics(items: DiagnosticItem[]): string; + /** UNSTABLE: new API, yet to be vetted. * * A specific subset TypeScript compiler options that can be supported by -- cgit v1.2.3