diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-02-07 17:54:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 01:54:05 -0500 |
commit | ea6179f7dce89416f1586ee18c2f437e68eabd38 (patch) | |
tree | 79a9416098b407af26f0745068a1310988eac98e /cli/js/lib.deno.ns.d.ts | |
parent | 5a8ba3b114bbacf10f03abc0335a753585861c97 (diff) |
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.
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<string, string>, options?: CompilerOptions - ): Promise<[Diagnostic | undefined, Record<string, string>]>; + ): Promise<[DiagnosticItem[] | undefined, Record<string, string>]>; /** UNSTABLE: new API, yet to be vetted. * @@ -2129,7 +2129,7 @@ declare namespace Deno { rootName: string, sources?: Record<string, string>, options?: CompilerOptions - ): Promise<[Diagnostic | undefined, string]>; + ): Promise<[DiagnosticItem[] | undefined, string]>; /** Returns the script arguments to the program. If for example we run a program * |