diff options
Diffstat (limited to 'cli/js/compiler_api.ts')
-rw-r--r-- | cli/js/compiler_api.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/compiler_api.ts b/cli/js/compiler_api.ts index dc81f34ab..489f3693b 100644 --- a/cli/js/compiler_api.ts +++ b/cli/js/compiler_api.ts @@ -3,7 +3,7 @@ // This file contains the runtime APIs which will dispatch work to the internal // compiler within Deno. -import { Diagnostic } from "./diagnostics.ts"; +import { DiagnosticItem } from "./diagnostics.ts"; import * as dispatch from "./dispatch.ts"; import { sendAsync } from "./dispatch_json.ts"; import * as util from "./util.ts"; @@ -328,7 +328,7 @@ export function compile( rootName: string, sources?: Record<string, string>, options?: CompilerOptions -): Promise<[Diagnostic | undefined, Record<string, string>]> { +): Promise<[DiagnosticItem[] | undefined, Record<string, string>]> { const payload = { rootName: sources ? rootName : checkRelative(rootName), sources, @@ -377,7 +377,7 @@ export function bundle( rootName: string, sources?: Record<string, string>, options?: CompilerOptions -): Promise<[Diagnostic | undefined, string]> { +): Promise<[DiagnosticItem[] | undefined, string]> { const payload = { rootName: sources ? rootName : checkRelative(rootName), sources, |