diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2021-02-22 00:17:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 16:17:27 +0100 |
commit | 18b2dbf0d0f7755275dec272e49950541b11edc1 (patch) | |
tree | 23e126d89c3db2a018b7d0ab3596cf91688eabf2 | |
parent | 10fb25db632f5f4febc7802c4909813b138b6c64 (diff) |
fix(dts): update doc of Deno.formatDiagnostics (#9564)
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 * ``` |