From d19c5a3a2b8c0cdf8602a7c710cee17771bf45af Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Sun, 21 Feb 2021 19:37:53 +0900 Subject: [PATCH] fix(dts): update doc of Deno.formatDiagnostics --- 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 91b33a2688c89f..1632d03bec2163 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 * ```