summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorMichael Lazarev <lazarev.michael@gmail.com>2023-05-02 00:52:56 +0300
committerGitHub <noreply@github.com>2023-05-01 21:52:56 +0000
commit2ee55145c06e5986c96f9eb40653464e81d79413 (patch)
tree6d679996fca15a0cde122f075765fd9f664e5188 /cli/tsc
parent913176313b6869eeb29b8d48e0c8d80227fa6544 (diff)
docs: correct example of piping the output of a subprocess to a file (#18933)
Fixes #18909
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 74d3ffb0b..90a12ad42 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -4003,11 +4003,14 @@ declare namespace Deno {
* "console.log('Hello World')",
* ],
* stdin: "piped",
+ * stdout: "piped",
* });
* const child = command.spawn();
*
* // open a file and pipe the subprocess output to it.
- * child.stdout.pipeTo(Deno.openSync("output").writable);
+ * child.stdout.pipeTo(
+ * Deno.openSync("output", { write: true, create: true }).writable,
+ * );
*
* // manually close stdin
* child.stdin.close();