From 18b2dbf0d0f7755275dec272e49950541b11edc1 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 22 Feb 2021 00:17:27 +0900 Subject: fix(dts): update doc of Deno.formatDiagnostics (#9564) --- cli/dts/lib.deno.unstable.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 91b33a268..1632d03be 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -259,7 +259,7 @@ declare namespace Deno { * user friendly format. * * ```ts - * const [diagnostics, result] = Deno.compile("file_with_compile_issues.ts"); + * const { diagnostics } = await Deno.emit("file_with_compile_issues.ts"); * console.table(diagnostics); // Prints raw diagnostic data * console.log(Deno.formatDiagnostics(diagnostics)); // User friendly output of diagnostics * ``` -- cgit v1.2.3