From ea6179f7dce89416f1586ee18c2f437e68eabd38 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 7 Feb 2020 17:54:05 +1100 Subject: Improve support for diagnostics from runtime compiler APIs (#3911) - Exports diagnostic items from `diagnostics.ts` which are missing at runtime. - Returns an array of diagnostics, instead of an object with a property of `items`. This is because of the way Rust deals with certain structures, and shouldn't be exposed in the APIs. --- cli/js/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 6d06a8cd6..4bbbf6320 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -2093,7 +2093,7 @@ declare namespace Deno { rootName: string, sources?: Record, options?: CompilerOptions - ): Promise<[Diagnostic | undefined, Record]>; + ): Promise<[DiagnosticItem[] | undefined, Record]>; /** UNSTABLE: new API, yet to be vetted. * @@ -2129,7 +2129,7 @@ declare namespace Deno { rootName: string, sources?: Record, options?: CompilerOptions - ): Promise<[Diagnostic | undefined, string]>; + ): Promise<[DiagnosticItem[] | undefined, string]>; /** Returns the script arguments to the program. If for example we run a program * -- cgit v1.2.3