feat: Add Deno.formatDiagnostics (#4032)

This commit is contained in:
Kitson Kelly 2020-02-25 06:48:14 +11:00 committed by GitHub
parent 5da7c7df1d
commit 2b7e28b591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 83 additions and 7 deletions

View file

@ -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